diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-03-17 09:16:18 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-03-17 09:17:29 +0400 |
commit | bb3c0571d31a2aef2556050127b7b5f99298b237 (patch) | |
tree | f38e6e368e4518699243ef9ec3a038fe5d248868 /libavcodec/h264.c | |
parent | a81a2b514eec4614fca277c0cbd8f5a1dbe2946e (diff) | |
parent | e3c2d0f3d41f79f7be7ba944aaca2e287c7d5c7c (diff) |
Merge commit 'e3c2d0f3d41f79f7be7ba944aaca2e287c7d5c7c'
* commit 'e3c2d0f3d41f79f7be7ba944aaca2e287c7d5c7c':
h264: Replace mpegvideo-specific MAX_THREADS by private define
Conflicts:
libavcodec/h264.h
Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/h264.c')
-rw-r--r-- | libavcodec/h264.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libavcodec/h264.c b/libavcodec/h264.c index 4e4d314f13..a9ed4f78db 100644 --- a/libavcodec/h264.c +++ b/libavcodec/h264.c @@ -1243,7 +1243,7 @@ static void free_tables(H264Context *h, int free_rbsp) h->cur_pic_ptr = NULL; - for (i = 0; i < MAX_THREADS; i++) { + for (i = 0; i < H264_MAX_THREADS; i++) { hx = h->thread_context[i]; if (!hx) continue; @@ -3342,12 +3342,12 @@ static int h264_slice_header_init(H264Context *h, int reinit) return ret; } - if (nb_slices > MAX_THREADS || (nb_slices > h->mb_height && h->mb_height)) { + if (nb_slices > H264_MAX_THREADS || (nb_slices > h->mb_height && h->mb_height)) { int max_slices; if (h->mb_height) - max_slices = FFMIN(MAX_THREADS, h->mb_height); + max_slices = FFMIN(H264_MAX_THREADS, h->mb_height); else - max_slices = MAX_THREADS; + max_slices = H264_MAX_THREADS; av_log(h->avctx, AV_LOG_WARNING, "too many threads/slices %d," " reducing to %d\n", nb_slices, max_slices); nb_slices = max_slices; |