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

Function subtitle_handler

tools/target_dec_fuzzer.c:88–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86#endif
87
88static int subtitle_handler(AVCodecContext *avctx, AVFrame *unused,
89 int *got_sub_ptr, const AVPacket *avpkt)
90{
91 AVSubtitle sub;
92 int ret = avcodec_decode_subtitle2(avctx, &sub, got_sub_ptr, avpkt);
93 av_assert0(ret != AVERROR_BUG);
94 if (ret >= 0 && *got_sub_ptr)
95 avsubtitle_free(&sub);
96 return ret;
97}
98
99static int audio_video_handler(AVCodecContext *avctx, AVFrame *frame,
100 int *got_frame, const AVPacket *dummy)

Callers

nothing calls this directly

Calls 2

avcodec_decode_subtitle2Function · 0.85
avsubtitle_freeFunction · 0.85

Tested by

no test coverage detected