diff options
author | Vitor Sessak <vitor1001@gmail.com> | 2008-02-15 21:40:36 +0000 |
---|---|---|
committer | Vitor Sessak <vitor1001@gmail.com> | 2008-02-15 21:40:36 +0000 |
commit | be36bc0950063b1b0810a26d48e15d851061f132 (patch) | |
tree | c70dd537fc7d48a024e1bb97c6e61df1c942fa56 /libavfilter/avfilter.c | |
parent | 05decb00cb4d1c4b75eee4af6d6ebfae34092b57 (diff) | |
download | ffmpeg-be36bc0950063b1b0810a26d48e15d851061f132.tar.gz |
Move setting the pts of the copied frame to a more adequated place.
Suggested by Bobby Bingham.
Commited in SoC by Vitor Sessak on 2008-02-09 16:56:55
Originally committed as revision 12042 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavfilter/avfilter.c')
-rw-r--r-- | libavfilter/avfilter.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c index f53803d975..361c8802d4 100644 --- a/libavfilter/avfilter.c +++ b/libavfilter/avfilter.c @@ -222,6 +222,7 @@ void avfilter_start_frame(AVFilterLink *link, AVFilterPicRef *picref) link->cur_pic = avfilter_default_get_video_buffer(link, link_dpad(link).min_perms); link->srcpic = picref; + link->cur_pic->pts = link->srcpic->pts; } else link->cur_pic = picref; @@ -256,7 +257,6 @@ void avfilter_draw_slice(AVFilterLink *link, int y, int h) if(link->srcpic) { avcodec_get_chroma_sub_sample(link->format, &hsub, &vsub); - link->cur_pic->pts = link->srcpic->pts; src[0] = link->srcpic-> data[0] + y * link->srcpic-> linesize[0]; dst[0] = link->cur_pic->data[0] + y * link->cur_pic->linesize[0]; for(i = 1; i < 4; i ++) { |