| 664 | |
| 665 | #if LIBAVCODEC_VERSION_MAJOR < 53 |
| 666 | int avcodec_decode_subtitle(AVCodecContext *avctx, AVSubtitle *sub, |
| 667 | int *got_sub_ptr, |
| 668 | const uint8_t *buf, int buf_size) |
| 669 | { |
| 670 | AVPacket avpkt; |
| 671 | av_init_packet(&avpkt); |
| 672 | avpkt.data = buf; |
| 673 | avpkt.size = buf_size; |
| 674 | |
| 675 | return avcodec_decode_subtitle2(avctx, sub, got_sub_ptr, &avpkt); |
| 676 | } |
| 677 | #endif |
| 678 | |
| 679 | int avcodec_decode_subtitle2(AVCodecContext *avctx, AVSubtitle *sub, |
nothing calls this directly
no test coverage detected