h264dsp: assert that depth is supported
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
5a1bbb3af0
commit
9c995fe19a
@ -26,6 +26,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
#include "libavutil/avassert.h"
|
||||||
#include "avcodec.h"
|
#include "avcodec.h"
|
||||||
#include "h264dsp.h"
|
#include "h264dsp.h"
|
||||||
|
|
||||||
@ -107,6 +108,7 @@ void ff_h264dsp_init(H264DSPContext *c, const int bit_depth, const int chroma_fo
|
|||||||
H264_DSP(10);
|
H264_DSP(10);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
av_assert0(bit_depth<=8);
|
||||||
H264_DSP(8);
|
H264_DSP(8);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user