MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / mpeg_set_cc_format

Function mpeg_set_cc_format

libavcodec/mpeg12dec.c:1883–1901  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1881}
1882
1883static void mpeg_set_cc_format(AVCodecContext *avctx, enum Mpeg2ClosedCaptionsFormat format,
1884 const char *label)
1885{
1886 Mpeg1Context *s1 = avctx->priv_data;
1887
1888 av_assert2(format != CC_FORMAT_AUTO);
1889
1890 if (!s1->cc_format) {
1891 s1->cc_format = format;
1892
1893 av_log(avctx, AV_LOG_DEBUG, "CC: first seen substream is %s format\n", label);
1894 }
1895
1896#if FF_API_CODEC_PROPS
1897FF_DISABLE_DEPRECATION_WARNINGS
1898 avctx->properties |= FF_CODEC_PROPERTY_CLOSED_CAPTIONS;
1899FF_ENABLE_DEPRECATION_WARNINGS
1900#endif
1901}
1902
1903static int mpeg_decode_a53_cc(AVCodecContext *avctx,
1904 const uint8_t *p, int buf_size)

Callers 1

mpeg_decode_a53_ccFunction · 0.85

Calls 1

av_logFunction · 0.85

Tested by

no test coverage detected