Revision 01d3ebaf libavcodec/utils.c

View differences:

libavcodec/utils.c
743 743
            ret = avctx->codec->decode(avctx, picture, got_picture_ptr,
744 744
                              avpkt);
745 745
            picture->pkt_dts= avpkt->dts;
746

  
747
            if(!avctx->has_b_frames){
746 748
            picture->pkt_pos= avpkt->pos;
747 749
            if (!picture->sample_aspect_ratio.num)
748 750
                picture->sample_aspect_ratio = avctx->sample_aspect_ratio;
......
752 754
                picture->height = avctx->height;
753 755
            if (picture->format == PIX_FMT_NONE)
754 756
                picture->format = avctx->pix_fmt;
757
            }
755 758
        }
756 759

  
757 760
        emms_c(); //needed to avoid an emms_c() call before every return;

Also available in: Unified diff