History

avcodec/huffyuvdec: Don't zero unnecessarily

A decoder's private data has already been zeroed (apart from options) before init is called.

Andreas Rheinhardt committed 2 years ago

Commit cebf1d51 parent 2d79ae31 file · +0 −1Browse files

Unified · Split

libavcodec/huffyuvdec.c+0−1
@@ -346,7 +346,6 @@ static av_cold int decode_init(AVCodecContext *avctx) · 345 unmodified lines
346 ff_bswapdsp_init(&s->bdsp);346 ff_bswapdsp_init(&s->bdsp);
347 ff_huffyuvdsp_init(&s->hdsp, avctx->pix_fmt);347 ff_huffyuvdsp_init(&s->hdsp, avctx->pix_fmt);
348 ff_llviddsp_init(&s->llviddsp);348 ff_llviddsp_init(&s->llviddsp);
349 memset(s->vlc, 0, 4 * sizeof(VLC));
350 349
351 s->interlaced = avctx->height > 288;350 s->interlaced = avctx->height > 288;
352 s->bgr32 = 1;351 s->bgr32 = 1;

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