diff mbox series

[FFmpeg-devel,5/5] avcodec/dvbsubdec: error out on unsupported coding methods

Message ID 20200818205535.2974765-5-u@pkh.me
State Accepted
Commit a469d29c0825b43ea7746708ab06568a64616aff
Headers show
Series [FFmpeg-devel,1/5] avcodec/dvbsubenc: merge rectangle encode code blocks | expand

Checks

Context Check Description
andriy/default pending
andriy/make success Make finished
andriy/make_fate success Make fate finished

Commit Message

Clément Bœsch Aug. 18, 2020, 8:55 p.m. UTC
---
 libavcodec/dvbsubdec.c | 3 +++
 1 file changed, 3 insertions(+)

Comments

Paul B Mahol Aug. 19, 2020, 7:09 p.m. UTC | #1
On 8/18/20, Clément Bœsch <u@pkh.me> wrote:
> ---
>  libavcodec/dvbsubdec.c | 3 +++
>  1 file changed, 3 insertions(+)
>

LGTM
diff mbox series

Patch

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;