diff options
author | Laurent Aimar <fenrir@videolan.org> | 2011-10-04 22:13:56 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-11-04 00:53:56 +0100 |
commit | b491c15c8530fafdf5fcef25b1918339f196fbad (patch) | |
tree | ddc4450ebdaaa683f1dd613fc6db58a7e6381b36 | |
parent | 2809f4ab934ca94b32e64f3a70e6008cd3876420 (diff) | |
download | ffmpeg-b491c15c8530fafdf5fcef25b1918339f196fbad.tar.gz |
h254: explicitly initialize bit depth/chroma idc
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavcodec/h264.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/libavcodec/h264.c b/libavcodec/h264.c index 96d8ecf77a..fd33aeff3e 100644 --- a/libavcodec/h264.c +++ b/libavcodec/h264.c @@ -1019,8 +1019,12 @@ static av_cold void common_init(H264Context *h){ s->height = s->avctx->height; s->codec_id= s->avctx->codec->id; - ff_h264dsp_init(&h->h264dsp, 8); - ff_h264_pred_init(&h->hpc, s->codec_id, 8); + s->avctx->bits_per_raw_sample = 8; + + ff_h264dsp_init(&h->h264dsp, + s->avctx->bits_per_raw_sample); + ff_h264_pred_init(&h->hpc, s->codec_id, + s->avctx->bits_per_raw_sample); h->dequant_coeff_pps= -1; s->unrestricted_mv=1; |