Ticket #3304: hevcdec_enc16_mc_500k.patch

File hevcdec_enc16_mc_500k.patch, 710 bytes (added by Jose Santiago, 13 years ago)

Patch that can make it decode. I dont know if this is the correct way to resolve the issue though.

  • libavcodec/hevc_ps.c

    diff -Naur ffmpeg-orig/libavcodec/hevc_ps.c ffmpeg/libavcodec/hevc_ps.c
    old new  
    760760            ret = AVERROR_INVALIDDATA;
    761761            goto err;
    762762        }
    763         if (sps->temporal_layer[i].num_reorder_pics > sps->temporal_layer[i].max_dec_pic_buffering - 1) {
     763        if (sps->temporal_layer[i].num_reorder_pics > sps->temporal_layer[i].max_dec_pic_buffering) {
    764764            av_log(s->avctx, AV_LOG_ERROR, "sps_max_num_reorder_pics out of range: %d\n",
    765765                   sps->temporal_layer[i].num_reorder_pics);
    766766            ret = AVERROR_INVALIDDATA;