Revision 9c87b8f7

View differences:

libavcodec/utils.c
848 848
        goto end;
849 849
    }
850 850

  
851
    if(avctx->codec)
851
    if(avctx->codec || !codec)
852 852
        goto end;
853 853

  
854 854
    if (codec->priv_data_size > 0) {

Also available in: Unified diff