History

avcodec/mpegvideo: Restrict resetting mbskip_table to MPEG-4 decoder

This is done due to invalid input and therefore the encoder is not affected by it.

Andreas Rheinhardt committed 2 years ago

Commit 3a4e7691 parent 47e43c11 file · +1 −1Browse files

Unified · Split

libavcodec/mpegvideo.c+1−1
@@ -616,7 +616,7 @@ int ff_mpv_init_context_frame(MpegEncContext *s) · 615 unmodified lines
616 }616 }
617 if (s->codec_id == AV_CODEC_ID_MPEG4) {617 if (s->codec_id == AV_CODEC_ID_MPEG4) {
618 ALLOC_POOL(mbskip_table, mb_array_size + 2,618 ALLOC_POOL(mbskip_table, mb_array_size + 2,
619 FF_REFSTRUCT_POOL_FLAG_ZERO_EVERY_TIME);619 !s->encoding ? FF_REFSTRUCT_POOL_FLAG_ZERO_EVERY_TIME : 0);
620 if (!s->encoding) {620 if (!s->encoding) {
621 /* cbp, pred_dir */621 /* cbp, pred_dir */
622 if (!(s->cbp_table = av_mallocz(mb_array_size)) ||622 if (!(s->cbp_table = av_mallocz(mb_array_size)) ||

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t