mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-11 09:59:50 +00:00
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
This commit is contained in:
parent
05decb00cb
commit
be36bc0950
@ -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 ++) {
|
||||
|
Loading…
Reference in New Issue
Block a user