[FFmpeg-cvslog] ffmpeg: change AVFMT_RAWPICTURE pts to reduce diff to qatar

Michael Niedermayer git at videolan.org
Sun May 20 12:35:52 CEST 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sun May 20 12:29:33 2012 +0200| [bf3dce6b593826f40dd423a74b44f08bf70cd757] | committer: Michael Niedermayer

ffmpeg: change AVFMT_RAWPICTURE pts to reduce diff to qatar

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

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

 ffmpeg.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ffmpeg.c b/ffmpeg.c
index b0e3c47..5bb227e 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -1991,7 +1991,7 @@ duplicate_frame:
         enc->coded_frame->top_field_first  = in_picture->top_field_first;
         pkt.data   = (uint8_t *)in_picture;
         pkt.size   =  sizeof(AVPicture);
-        pkt.pts    = av_rescale_q(ost->sync_opts, enc->time_base, ost->st->time_base);
+        pkt.pts    = av_rescale_q(in_picture->pts, enc->time_base, ost->st->time_base);
         pkt.flags |= AV_PKT_FLAG_KEY;
 
         write_frame(s, &pkt, ost);



More information about the ffmpeg-cvslog mailing list