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

Function avsubtitle_free

libavcodec/avcodec.c:413–433  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

411}
412
413void avsubtitle_free(AVSubtitle *sub)
414{
415 int i;
416
417 for (i = 0; i < sub->num_rects; i++) {
418 AVSubtitleRect *const rect = sub->rects[i];
419
420 av_freep(&rect->data[0]);
421 av_freep(&rect->data[1]);
422 av_freep(&rect->data[2]);
423 av_freep(&rect->data[3]);
424 av_freep(&rect->text);
425 av_freep(&rect->ass);
426
427 av_freep(&sub->rects[i]);
428 }
429
430 av_freep(&sub->rects);
431
432 memset(sub, 0, sizeof(*sub));
433}
434
435av_cold void ff_codec_close(AVCodecContext *avctx)
436{

Callers 12

subtitle_handlerFunction · 0.85
try_decode_frameFunction · 0.85
frame_queue_unref_itemFunction · 0.85
subtitle_threadFunction · 0.85
copy_av_subtitleFunction · 0.85
subtitle_freeFunction · 0.85
subtitle_wrap_frameFunction · 0.85
transcode_subtitlesFunction · 0.85
process_frameFunction · 0.85
display_end_segmentFunction · 0.85
avcodec_decode_subtitle2Function · 0.85
init_subtitlesFunction · 0.85

Calls 1

av_freepFunction · 0.85

Tested by

no test coverage detected