| 1881 | } |
| 1882 | |
| 1883 | static 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 |
| 1897 | FF_DISABLE_DEPRECATION_WARNINGS |
| 1898 | avctx->properties |= FF_CODEC_PROPERTY_CLOSED_CAPTIONS; |
| 1899 | FF_ENABLE_DEPRECATION_WARNINGS |
| 1900 | #endif |
| 1901 | } |
| 1902 | |
| 1903 | static int mpeg_decode_a53_cc(AVCodecContext *avctx, |
| 1904 | const uint8_t *p, int buf_size) |
no test coverage detected