[PATCH] avcodec/mpeg12dec: fix range for cc_format option
After support was added for DVB 0502 Closed Caption coding, the cc_format option's range was never updated so user cannot select this coding as a forced formatting choice. Fix the range of the option by ending it with the new coding type. Signed-off-by: Marth64 <marth64@proxyid.net> --- libavcodec/mpeg12dec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/mpeg12dec.c b/libavcodec/mpeg12dec.c index 208ee28b04..e114fb3d4d 100644 --- a/libavcodec/mpeg12dec.c +++ b/libavcodec/mpeg12dec.c @@ -2682,7 +2682,7 @@ const FFCodec ff_mpeg1video_decoder = { static const AVOption mpeg2video_options[] = { { "cc_format", "extract a specific Closed Captions format", M2V_OFFSET(cc_format), AV_OPT_TYPE_INT, { .i64 = CC_FORMAT_AUTO }, - CC_FORMAT_AUTO, CC_FORMAT_DVD, M2V_PARAM, .unit = "cc_format" }, + CC_FORMAT_AUTO, CC_FORMAT_DVB_0502, M2V_PARAM, .unit = "cc_format" }, { "auto", "pick first seen CC substream", 0, AV_OPT_TYPE_CONST, { .i64 = CC_FORMAT_AUTO }, .flags = M2V_PARAM, .unit = "cc_format" }, -- 2.34.1
On Tue, Dec 24, 2024 at 9:59 PM Marth64 <marth64@proxyid.net> wrote:
After support was added for DVB 0502 Closed Caption coding,
What is "DVB 0502"? Kieran
Hi Kieran, Per discussion on IRC, will write a patch to rename this and disassociate from DVB. Thank you.
Will push soon to fix the issue. Will revisit renaming it in a separate email.
Pushed
participants (2)
-
Kieran Kunhya -
Marth64