Revision 59c673d5 libavcodec/mpegvideo.c

View differences:

libavcodec/mpegvideo.c
951 951
    assert(s->last_picture_ptr==NULL || s->out_format != FMT_H264 || s->codec_id == CODEC_ID_SVQ3);
952 952

  
953 953
    /* mark&release old frames */
954
    if (s->pict_type != B_TYPE && s->last_picture_ptr) {
954
    if (s->pict_type != B_TYPE && s->last_picture_ptr && s->last_picture_ptr->data[0]) {
955 955
        avctx->release_buffer(avctx, (AVFrame*)s->last_picture_ptr);
956 956

  
957 957
        /* release forgotten pictures */

Also available in: Unified diff