summaryrefslogtreecommitdiff
path: root/libavcodec/utvideoenc.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2021-02-25 19:20:01 +0100
committerJames Almer <jamrial@gmail.com>2021-04-27 10:43:02 -0300
commitd85c41b5723a4acf9400043cb533682d2e2c4287 (patch)
tree9e55af93f5fd80b3f8136fe26f52c97387e4b6dc /libavcodec/utvideoenc.c
parente1597fe0cfe07e134ece8ea199ff520d3ac77aee (diff)
downloadffmpeg-d85c41b5723a4acf9400043cb533682d2e2c4287.tar.gz
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/utvideoenc.c')
-rw-r--r--libavcodec/utvideoenc.c28
1 files changed, 0 insertions, 28 deletions
diff --git a/libavcodec/utvideoenc.c b/libavcodec/utvideoenc.c
index 32c204a898..8c8a9535a1 100644
--- a/libavcodec/utvideoenc.c
+++ b/libavcodec/utvideoenc.c
@@ -43,12 +43,6 @@ typedef struct HuffEntry {
uint32_t code;
} HuffEntry;
-#if FF_API_PRIVATE_OPT
-static const int ut_pred_order[5] = {
- PRED_LEFT, PRED_MEDIAN, PRED_MEDIAN, PRED_NONE, PRED_GRADIENT
-};
-#endif
-
/* Compare huffman tree nodes */
static int ut_huff_cmp_len(const void *a, const void *b)
{
@@ -140,28 +134,6 @@ static av_cold int utvideo_encode_init(AVCodecContext *avctx)
ff_bswapdsp_init(&c->bdsp);
ff_llvidencdsp_init(&c->llvidencdsp);
-#if FF_API_PRIVATE_OPT
-FF_DISABLE_DEPRECATION_WARNINGS
- /* Check the prediction method, and error out if unsupported */
- if (avctx->prediction_method < 0 || avctx->prediction_method > 4) {
- av_log(avctx, AV_LOG_WARNING,
- "Prediction method %d is not supported in Ut Video.\n",
- avctx->prediction_method);
- return AVERROR_OPTION_NOT_FOUND;
- }
-
- if (avctx->prediction_method == FF_PRED_PLANE) {
- av_log(avctx, AV_LOG_ERROR,
- "Plane prediction is not supported in Ut Video.\n");
- return AVERROR_OPTION_NOT_FOUND;
- }
-
- /* Convert from libavcodec prediction type to Ut Video's */
- if (avctx->prediction_method)
- c->frame_pred = ut_pred_order[avctx->prediction_method];
-FF_ENABLE_DEPRECATION_WARNINGS
-#endif
-
if (c->frame_pred == PRED_GRADIENT) {
av_log(avctx, AV_LOG_ERROR, "Gradient prediction is not supported.\n");
return AVERROR_OPTION_NOT_FOUND;