Commit 893e6b11 authored by vitor's avatar vitor

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


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@12042 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 0e0e1636
...@@ -222,6 +222,7 @@ void avfilter_start_frame(AVFilterLink *link, AVFilterPicRef *picref) ...@@ -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->cur_pic = avfilter_default_get_video_buffer(link, link_dpad(link).min_perms);
link->srcpic = picref; link->srcpic = picref;
link->cur_pic->pts = link->srcpic->pts;
} }
else else
link->cur_pic = picref; link->cur_pic = picref;
...@@ -256,7 +257,6 @@ void avfilter_draw_slice(AVFilterLink *link, int y, int h) ...@@ -256,7 +257,6 @@ void avfilter_draw_slice(AVFilterLink *link, int y, int h)
if(link->srcpic) { if(link->srcpic) {
avcodec_get_chroma_sub_sample(link->format, &hsub, &vsub); 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]; src[0] = link->srcpic-> data[0] + y * link->srcpic-> linesize[0];
dst[0] = link->cur_pic->data[0] + y * link->cur_pic->linesize[0]; dst[0] = link->cur_pic->data[0] + y * link->cur_pic->linesize[0];
for(i = 1; i < 4; i ++) { for(i = 1; i < 4; i ++) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment