Revision 18ded93a libavcodec/utils.c

View differences:

libavcodec/utils.c
456 456
    pic->pkt_pos = -1;
457 457
    pic->key_frame= 1;
458 458
    pic->sample_aspect_ratio = (AVRational){0, 1};
459
    pic->format = -1;           /* unknown */
459 460
}
460 461

  
461 462
AVFrame *avcodec_alloc_frame(void){
......
743 744
                picture->width = avctx->width;
744 745
            if (!picture->height)
745 746
                picture->height = avctx->height;
747
            if (picture->format == PIX_FMT_NONE)
748
                picture->format = avctx->pix_fmt;
746 749
        }
747 750

  
748 751
        emms_c(); //needed to avoid an emms_c() call before every return;

Also available in: Unified diff