diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2011-04-29 12:28:44 +0200 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2011-05-01 13:09:58 +0200 |
commit | 1ba57272429fc6c86e39cd236e2b32ac545e1488 (patch) | |
tree | 6e8e29bf5b9c71420943d28cb383246f7a357270 /cmdutils.c | |
parent | aba0278e9fe8e66c078588efe66f6af4db432770 (diff) | |
download | ffmpeg-1ba57272429fc6c86e39cd236e2b32ac545e1488.tar.gz |
lavc: add a pkt_pos field to AVFrame
This is similar to what was done with pkt_pts. This simplifies the
operation of extracting the pos information from the AVPacket, and
allows further simplifications.
Diffstat (limited to 'cmdutils.c')
-rw-r--r-- | cmdutils.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cmdutils.c b/cmdutils.c index 4363e8a842..7989e06b74 100644 --- a/cmdutils.c +++ b/cmdutils.c @@ -907,6 +907,7 @@ int get_filtered_video_frame(AVFilterContext *ctx, AVFrame *frame, memcpy(frame->data, picref->data, sizeof(frame->data)); memcpy(frame->linesize, picref->linesize, sizeof(frame->linesize)); + frame->pkt_pos = picref->pos; frame->interlaced_frame = picref->video->interlaced; frame->top_field_first = picref->video->top_field_first; frame->key_frame = picref->video->key_frame; |