diff options
Diffstat (limited to 'libavcodec/mdec.c')
-rw-r--r-- | libavcodec/mdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/mdec.c b/libavcodec/mdec.c index b28ac26913..ba06641ab0 100644 --- a/libavcodec/mdec.c +++ b/libavcodec/mdec.c @@ -246,7 +246,7 @@ static av_cold int decode_init_thread_copy(AVCodecContext *avctx){ avctx->coded_frame= p; a->avctx= avctx; - p->qscale_table= av_mallocz( p->qstride * a->mb_height); + p->qscale_table= av_mallocz(a->mb_width); return 0; } |