Revision 1ba57272 libavcodec/utils.c

View differences:

libavcodec/utils.c
341 341
    }
342 342
    s->internal_buffer_count++;
343 343

  
344
    if(s->pkt) pic->pkt_pts= s->pkt->pts;
345
    else       pic->pkt_pts= AV_NOPTS_VALUE;
344
    if (s->pkt) {
345
        pic->pkt_pts = s->pkt->pts;
346
        pic->pkt_pos = s->pkt->pos;
347
    } else {
348
        pic->pkt_pts = AV_NOPTS_VALUE;
349
        pic->pkt_pos = -1;
350
    }
346 351
    pic->reordered_opaque= s->reordered_opaque;
347 352

  
348 353
    if(s->debug&FF_DEBUG_BUFFERS)
......
448 453
    memset(pic, 0, sizeof(AVFrame));
449 454

  
450 455
    pic->pts = pic->best_effort_timestamp = AV_NOPTS_VALUE;
456
    pic->pkt_pos = -1;
451 457
    pic->key_frame= 1;
452 458
}
453 459

  
......
730 736
            ret = avctx->codec->decode(avctx, picture, got_picture_ptr,
731 737
                              avpkt);
732 738
            picture->pkt_dts= avpkt->dts;
739
            picture->pkt_pos= avpkt->pos;
733 740
        }
734 741

  
735 742
        emms_c(); //needed to avoid an emms_c() call before every return;

Also available in: Unified diff