diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2021-02-25 19:20:01 +0100 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2021-04-27 10:43:02 -0300 |
commit | d85c41b5723a4acf9400043cb533682d2e2c4287 (patch) | |
tree | 9e55af93f5fd80b3f8136fe26f52c97387e4b6dc /libavcodec/ljpegenc.c | |
parent | e1597fe0cfe07e134ece8ea199ff520d3ac77aee (diff) |
avcodec: Remove private options from AVCodecContext
Several options that were too codec-specific were deprecated between
0e6c8532215790bbe560a9eea4f3cc82bb55cf92 and
0e9c4fe254073b209970df3e3cb84531bc388e99.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/ljpegenc.c')
-rw-r--r-- | libavcodec/ljpegenc.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/libavcodec/ljpegenc.c b/libavcodec/ljpegenc.c index 74a2cdcc46..9a107e85ce 100644 --- a/libavcodec/ljpegenc.c +++ b/libavcodec/ljpegenc.c @@ -72,13 +72,6 @@ static int ljpeg_encode_bgr(AVCodecContext *avctx, PutBitContext *pb, int left[4], top[4], topleft[4]; int x, y, i; -#if FF_API_PRIVATE_OPT -FF_DISABLE_DEPRECATION_WARNINGS - if (avctx->prediction_method) - s->pred = avctx->prediction_method + 1; -FF_ENABLE_DEPRECATION_WARNINGS -#endif - for (i = 0; i < 4; i++) buffer[0][i] = 1 << (9 - 1); @@ -203,13 +196,6 @@ static int ljpeg_encode_yuv(AVCodecContext *avctx, PutBitContext *pb, const int mb_height = (avctx->height + s->vsample[0] - 1) / s->vsample[0]; int mb_x, mb_y; -#if FF_API_PRIVATE_OPT -FF_DISABLE_DEPRECATION_WARNINGS - if (avctx->prediction_method) - s->pred = avctx->prediction_method + 1; -FF_ENABLE_DEPRECATION_WARNINGS -#endif - for (mb_y = 0; mb_y < mb_height; mb_y++) { if (put_bytes_left(pb, 0) < mb_width * 4 * 3 * s->hsample[0] * s->vsample[0]) { |