aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClément Bœsch <u@pkh.me>2020-08-18 17:22:06 +0200
committerClément Bœsch <u@pkh.me>2020-08-22 19:02:01 +0200
commita469d29c0825b43ea7746708ab06568a64616aff (patch)
tree92df281d8bdeda7884486055b95aad43d6d15eaf
parentb0f96f663c72801227f644ef86911c499859da0e (diff)
downloadffmpeg-a469d29c0825b43ea7746708ab06568a64616aff.tar.gz
avcodec/dvbsubdec: error out on unsupported coding methods
-rw-r--r--libavcodec/dvbsubdec.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/dvbsubdec.c b/libavcodec/dvbsubdec.c
index 1b75a2a46b..9bee33e4a2 100644
--- a/libavcodec/dvbsubdec.c
+++ b/libavcodec/dvbsubdec.c
@@ -1034,10 +1034,13 @@ static int dvbsub_parse_object_segment(AVCodecContext *avctx,
}
} else if (coding_method == 1) {
avpriv_report_missing_feature(avctx, "coded as a string of characters");
+ return AVERROR_PATCHWELCOME;
} else if (coding_method == 2) {
avpriv_report_missing_feature(avctx, "progressive coding of pixels");
+ return AVERROR_PATCHWELCOME;
} else {
av_log(avctx, AV_LOG_ERROR, "Unknown object coding %d\n", coding_method);
+ return AVERROR_INVALIDDATA;
}
return 0;