diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2011-04-29 14:28:44 +0400 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2011-05-01 15:09:58 +0400 |
commit | 1ba57272429fc6c86e39cd236e2b32ac545e1488 (patch) | |
tree | 6e8e29bf5b9c71420943d28cb383246f7a357270 /libavfilter/vsrc_movie.c | |
parent | aba0278e9fe8e66c078588efe66f6af4db432770 (diff) |
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 'libavfilter/vsrc_movie.c')
-rw-r--r-- | libavfilter/vsrc_movie.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavfilter/vsrc_movie.c b/libavfilter/vsrc_movie.c index f0adc25769..e6b50850f2 100644 --- a/libavfilter/vsrc_movie.c +++ b/libavfilter/vsrc_movie.c @@ -230,7 +230,6 @@ static int movie_get_frame(AVFilterLink *outlink) while ((ret = av_read_frame(movie->format_ctx, &pkt)) >= 0) { // Is this a packet from the video stream? if (pkt.stream_index == movie->stream_index) { - movie->codec_ctx->reordered_opaque = pkt.pos; avcodec_decode_video2(movie->codec_ctx, movie->frame, &frame_decoded, &pkt); if (frame_decoded) { @@ -247,7 +246,7 @@ static int movie_get_frame(AVFilterLink *outlink) movie->picref->pts = movie->frame->pkt_pts == AV_NOPTS_VALUE ? movie->frame->pkt_dts : movie->frame->pkt_pts; - movie->picref->pos = movie->frame->reordered_opaque; + movie->picref->pos = movie->frame->pkt_pos; movie->picref->video->pixel_aspect = st->sample_aspect_ratio.num ? st->sample_aspect_ratio : movie->codec_ctx->sample_aspect_ratio; movie->picref->video->interlaced = movie->frame->interlaced_frame; |