History

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

Stefano Sabatini committed 16 years ago

Commit 5bb5c1d1 parent ec7ab613 files · +6 −2Browse files

Showing the changes to libavfilter/avfilter.c (1 of 3 files). Show all

Unified · Split

libavfilter/avfilter.c+4−2
@@ -171,11 +171,12 @@ int avfilter_config_links(AVFilterContext *filter) · 170 unmodified lines
171171 static void dprintf_picref(void *ctx, AVFilterPicRef *picref, int end)
172172 {
173173 dprintf(ctx,
174− "picref[%p data[%p, %p, %p, %p] linesize[%d, %d, %d, %d] pts:%"PRId64" a:%d/%d s:%dx%d]%s",
174+ "picref[%p data[%p, %p, %p, %p] linesize[%d, %d, %d, %d] pts:%"PRId64" pos:%"PRId64" a:%d/%d s:%dx%d]%s",
175175 picref,
176176 picref->data [0], picref->data [1], picref->data [2], picref->data [3],
177177 picref->linesize[0], picref->linesize[1], picref->linesize[2], picref->linesize[3],
178− picref->pts, picref->pixel_aspect.num, picref->pixel_aspect.den, picref->w, picref->h,
178+ picref->pts, picref->pos,
179+ picref->pixel_aspect.num, picref->pixel_aspect.den, picref->w, picref->h,
179180 end ? "\n" : "");
180181 }
181182
@@ -263,6 +264,7 @@ void avfilter_start_frame(AVFilterLink *link, AVFilterPicRef *picref) · 81 unmodified lines
263264 link->cur_pic = avfilter_default_get_video_buffer(link, dst->min_perms, link->w, link->h);
264265 link->srcpic = picref;
265266 link->cur_pic->pts = link->srcpic->pts;
267+ link->cur_pic->pos = link->srcpic->pos;
266268 link->cur_pic->pixel_aspect = link->srcpic->pixel_aspect;
267269 }
268270 else

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t