| 86 | #endif |
| 87 | |
| 88 | static 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 | |
| 99 | static int audio_video_handler(AVCodecContext *avctx, AVFrame *frame, |
| 100 | int *got_frame, const AVPacket *dummy) |
nothing calls this directly
no test coverage detected