[vlc-commits] codec: VideoToolbox: set default rate to field rate

Francois Cartegnie git at videolan.org
Wed Apr 5 14:19:58 CEST 2017


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Tue Apr  4 18:09:54 2017 +0200| [ec9de0f66d5407e889ea4bc7c65c7a908e6a0c4e] | committer: Francois Cartegnie

codec: VideoToolbox: set default rate to field rate

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ec9de0f66d5407e889ea4bc7c65c7a908e6a0c4e
---

 modules/codec/videotoolbox.m | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/codec/videotoolbox.m b/modules/codec/videotoolbox.m
index 330d590..ff75e3c 100644
--- a/modules/codec/videotoolbox.m
+++ b/modules/codec/videotoolbox.m
@@ -634,7 +634,7 @@ static int StartVideoToolbox(decoder_t *p_dec)
         date_Init( &p_sys->pts, p_dec->fmt_in.video.i_frame_rate * 2,
                                 p_dec->fmt_in.video.i_frame_rate_base );
     }
-    else date_Init( &p_sys->pts, 30000, 1001 );
+    else date_Init( &p_sys->pts, 2 * 30000, 1001 );
 
     VTDictionarySetInt32(pixelaspectratio,
                          kCVImageBufferPixelAspectRatioHorizontalSpacingKey,



More information about the vlc-commits mailing list