]> git.sesse.net Git - vlc/commitdiff
- ffmpeg/encoder.c: force AV_NOPTS_VALUE to int64_t type rather than signed int
authorDamien Fouilleul <damienf@videolan.org>
Thu, 11 Jan 2007 23:28:59 +0000 (23:28 +0000)
committerDamien Fouilleul <damienf@videolan.org>
Thu, 11 Jan 2007 23:28:59 +0000 (23:28 +0000)
modules/codec/ffmpeg/encoder.c

index 5a68d66cf4d754358444c95d2779b64d8b824d3a..41c7fdb7e3bdf90bbec251bdf494259a31098368 100644 (file)
@@ -757,9 +757,9 @@ static block_t *EncodeVideo( encoder_t *p_enc, picture_t *p_pict )
         p_enc->fmt_out.i_codec == VLC_FOURCC( 'm', 'p', '1', 'v' ) ||
         p_enc->fmt_out.i_codec == VLC_FOURCC( 'm', 'p', '2', 'v' ) )
     {
-        frame.pts = p_pict->date ? p_pict->date : (signed int) AV_NOPTS_VALUE;
+        frame.pts = p_pict->date ? p_pict->date : (int64_t)AV_NOPTS_VALUE;
 
-        if ( p_sys->b_hurry_up && frame.pts != (signed int) AV_NOPTS_VALUE )
+        if ( p_sys->b_hurry_up && frame.pts != (int64_t)AV_NOPTS_VALUE )
         {
             mtime_t current_date = mdate();