aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/h264.h
diff options
context:
space:
mode:
authorVittorio Giovara <vittorio.giovara@gmail.com>2014-02-28 13:21:59 +0100
committerVittorio Giovara <vittorio.giovara@gmail.com>2014-03-16 23:01:01 +0100
commite3c2d0f3d41f79f7be7ba944aaca2e287c7d5c7c (patch)
treea7def89eae3816493ac1bb5fa31233738a55fe7d /libavcodec/h264.h
parent5d1c2e53ab3ce27b48c138d22bb01ff8e8304f27 (diff)
downloadffmpeg-e3c2d0f3d41f79f7be7ba944aaca2e287c7d5c7c.tar.gz
h264: Replace mpegvideo-specific MAX_THREADS by private define
Diffstat (limited to 'libavcodec/h264.h')
-rw-r--r--libavcodec/h264.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/h264.h b/libavcodec/h264.h
index f31a0701ea..b4421069ac 100644
--- a/libavcodec/h264.h
+++ b/libavcodec/h264.h
@@ -40,6 +40,7 @@
#include "rectangle.h"
#define H264_MAX_PICTURE_COUNT 32
+#define H264_MAX_THREADS 16
#define MAX_SPS_COUNT 32
#define MAX_PPS_COUNT 256
@@ -580,7 +581,7 @@ typedef struct H264Context {
* @name Members for slice based multithreading
* @{
*/
- struct H264Context *thread_context[MAX_THREADS];
+ struct H264Context *thread_context[H264_MAX_THREADS];
/**
* current slice number, used to initalize slice_num of each thread/context