diff options
author | Janne Grunau <janne-libav@jannau.net> | 2012-12-26 00:24:21 +0100 |
---|---|---|
committer | Janne Grunau <janne-libav@jannau.net> | 2012-12-26 00:24:21 +0100 |
commit | 1f4ea4e068f1131bff6c246308f52acbf1347cc2 (patch) | |
tree | ada27102f26c868abad2c12333331d70ad5c92dd | |
parent | 0a9132b84c0590500bb3d6b358219323805993fc (diff) | |
download | ffmpeg-1f4ea4e068f1131bff6c246308f52acbf1347cc2.tar.gz |
mpegvideo: initialize videodsp with correct pixel depth
Fixes decoding of 9/10 bit per pixel h264 videos as reported in
https://bugzilla.libav.org/show_bug.cgi?id=404 .
-rw-r--r-- | libavcodec/mpegvideo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c index 0fab9af326..0b6ddb956c 100644 --- a/libavcodec/mpegvideo.c +++ b/libavcodec/mpegvideo.c @@ -175,7 +175,7 @@ const uint8_t *avpriv_mpv_find_start_code(const uint8_t *restrict p, av_cold int ff_dct_common_init(MpegEncContext *s) { ff_dsputil_init(&s->dsp, s->avctx); - ff_videodsp_init(&s->vdsp, 8); + ff_videodsp_init(&s->vdsp, s->avctx->bits_per_raw_sample); s->dct_unquantize_h263_intra = dct_unquantize_h263_intra_c; s->dct_unquantize_h263_inter = dct_unquantize_h263_inter_c; |