From 5d1c2e53ab3ce27b48c138d22bb01ff8e8304f27 Mon Sep 17 00:00:00 2001 From: Vittorio Giovara Date: Thu, 27 Feb 2014 17:07:30 +0100 Subject: h264: Replace mpegvideo-specific MAX_PICTURE_COUNT by private define --- libavcodec/h264_ps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavcodec/h264_ps.c') diff --git a/libavcodec/h264_ps.c b/libavcodec/h264_ps.c index 94efaa2f7a..b5b6a44cb3 100644 --- a/libavcodec/h264_ps.c +++ b/libavcodec/h264_ps.c @@ -400,7 +400,7 @@ int ff_h264_decode_seq_parameter_set(H264Context *h) } sps->ref_frame_count = get_ue_golomb_31(&h->gb); - if (sps->ref_frame_count > MAX_PICTURE_COUNT - 2 || + if (sps->ref_frame_count > H264_MAX_PICTURE_COUNT - 2 || sps->ref_frame_count >= 32U) { av_log(h->avctx, AV_LOG_ERROR, "too many reference frames %d\n", sps->ref_frame_count); -- cgit v1.2.3