Revision ad82bf9c libavcodec/utils.c

View differences:

libavcodec/utils.c
709 709

  
710 710
        emms_c(); //needed to avoid an emms_c() call before every return;
711 711

  
712
        picture->best_effort_timestamp = guess_correct_pts(avctx,
713
                                                           picture->pkt_pts,
714
                                                           picture->pkt_dts);
715 712

  
716
        if (*got_picture_ptr)
713
        if (*got_picture_ptr){
717 714
            avctx->frame_number++;
715
            picture->best_effort_timestamp = guess_correct_pts(avctx,
716
                                                            picture->pkt_pts,
717
                                                            picture->pkt_dts);
718
        }
718 719
    }else
719 720
        ret= 0;
720 721

  

Also available in: Unified diff