Revision 1ba57272 libavfilter/vsrc_movie.c

View differences:

libavfilter/vsrc_movie.c
230 230
    while ((ret = av_read_frame(movie->format_ctx, &pkt)) >= 0) {
231 231
        // Is this a packet from the video stream?
232 232
        if (pkt.stream_index == movie->stream_index) {
233
            movie->codec_ctx->reordered_opaque = pkt.pos;
234 233
            avcodec_decode_video2(movie->codec_ctx, movie->frame, &frame_decoded, &pkt);
235 234

  
236 235
            if (frame_decoded) {
......
247 246
                movie->picref->pts = movie->frame->pkt_pts == AV_NOPTS_VALUE ?
248 247
                    movie->frame->pkt_dts : movie->frame->pkt_pts;
249 248

  
250
                movie->picref->pos                    = movie->frame->reordered_opaque;
249
                movie->picref->pos                    = movie->frame->pkt_pos;
251 250
                movie->picref->video->pixel_aspect = st->sample_aspect_ratio.num ?
252 251
                    st->sample_aspect_ratio : movie->codec_ctx->sample_aspect_ratio;
253 252
                movie->picref->video->interlaced      = movie->frame->interlaced_frame;

Also available in: Unified diff