diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-03-13 11:27:05 +0000 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-03-13 11:27:05 +0000 |
commit | 5bb5c1dc86e93a681ad6555dc98afec0055b69e5 (patch) | |
tree | 862adeb3f339a1089e030c14c7fcd1e405713e59 /libavfilter/defaults.c | |
parent | ec7ab610d51508344273dbc38fec4ab6034bf1e2 (diff) | |
download | ffmpeg-5bb5c1dc86e93a681ad6555dc98afec0055b69e5.tar.gz |
Add AVFilterPicRef.pos field and make libavfilter propagate stream
byte position information, as stored in the pkt.pos, through the
filterchain.
Note that the pos field is added *non* at the end of the
AVFilterPicRef struct, thus breaking ABI compatibility, which is
allowed as the API is still considered non-stable.
Originally committed as revision 22506 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavfilter/defaults.c')
-rw-r--r-- | libavfilter/defaults.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavfilter/defaults.c b/libavfilter/defaults.c index 85fdffba44..3f5f6e1976 100644 --- a/libavfilter/defaults.c +++ b/libavfilter/defaults.c @@ -74,6 +74,7 @@ void avfilter_default_start_frame(AVFilterLink *link, AVFilterPicRef *picref) if(out) { out->outpic = avfilter_get_video_buffer(out, AV_PERM_WRITE, out->w, out->h); out->outpic->pts = picref->pts; + out->outpic->pos = picref->pos; out->outpic->pixel_aspect = picref->pixel_aspect; avfilter_start_frame(out, avfilter_ref_pic(out->outpic, ~0)); } |