History

avcodec/cri, tdsc, tiff: Don't forward AVCodecContext.dct_algo

It is unused for decoders.

Andreas Rheinhardt committed 2 years ago

Commit 80666fd1 parent 96469333 files · +0 −3Browse files

Unified · Split

3 files
  1. libavcodec/cri.c +0 −1
  2. libavcodec/tdsc.c +0 −1
  3. libavcodec/tiff.c +0 −1
libavcodec/cri.c+0−1
@@ -70,7 +70,6 @@ static av_cold int cri_decode_init(AVCodecContext *avctx) · 69 unmodified lines
70 return AVERROR(ENOMEM);70 return AVERROR(ENOMEM);
71 s->jpeg_avctx->flags = avctx->flags;71 s->jpeg_avctx->flags = avctx->flags;
72 s->jpeg_avctx->flags2 = avctx->flags2;72 s->jpeg_avctx->flags2 = avctx->flags2;
73 s->jpeg_avctx->dct_algo = avctx->dct_algo;
74 s->jpeg_avctx->idct_algo = avctx->idct_algo;73 s->jpeg_avctx->idct_algo = avctx->idct_algo;
75 ret = avcodec_open2(s->jpeg_avctx, codec, NULL);74 ret = avcodec_open2(s->jpeg_avctx, codec, NULL);
76 if (ret < 0)75 if (ret < 0)
libavcodec/tdsc.c+0−1
@@ -127,7 +127,6 @@ static av_cold int tdsc_init(AVCodecContext *avctx) · 126 unmodified lines
127 return AVERROR(ENOMEM);127 return AVERROR(ENOMEM);
128 ctx->jpeg_avctx->flags = avctx->flags;128 ctx->jpeg_avctx->flags = avctx->flags;
129 ctx->jpeg_avctx->flags2 = avctx->flags2;129 ctx->jpeg_avctx->flags2 = avctx->flags2;
130 ctx->jpeg_avctx->dct_algo = avctx->dct_algo;
131 ctx->jpeg_avctx->idct_algo = avctx->idct_algo;130 ctx->jpeg_avctx->idct_algo = avctx->idct_algo;
132 ret = avcodec_open2(ctx->jpeg_avctx, codec, NULL);131 ret = avcodec_open2(ctx->jpeg_avctx, codec, NULL);
133 if (ret < 0)132 if (ret < 0)
libavcodec/tiff.c+0−1
@@ -2416,7 +2416,6 @@ static av_cold int tiff_init(AVCodecContext *avctx) · 2415 unmodified lines
2416 return AVERROR(ENOMEM);2416 return AVERROR(ENOMEM);
2417 s->avctx_mjpeg->flags = avctx->flags;2417 s->avctx_mjpeg->flags = avctx->flags;
2418 s->avctx_mjpeg->flags2 = avctx->flags2;2418 s->avctx_mjpeg->flags2 = avctx->flags2;
2419 s->avctx_mjpeg->dct_algo = avctx->dct_algo;
2420 s->avctx_mjpeg->idct_algo = avctx->idct_algo;2419 s->avctx_mjpeg->idct_algo = avctx->idct_algo;
2421 s->avctx_mjpeg->max_pixels = avctx->max_pixels;2420 s->avctx_mjpeg->max_pixels = avctx->max_pixels;
2422 ret = avcodec_open2(s->avctx_mjpeg, codec, NULL);2421 ret = avcodec_open2(s->avctx_mjpeg, codec, NULL);

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