Unified · Split
| @@ -72,6 +72,8 @@ static void error(const char *err) · 71 unmodified lines | |||
| 72 | } | 72 | } |
| 73 | 73 | ||
| 74 | static const FFCodec *c = NULL; | 74 | static const FFCodec *c = NULL; |
| 75 | |||
| 76 | #ifndef FFMPEG_DECODER | ||
| 75 | static const FFCodec *AVCodecInitialize(enum AVCodecID codec_id) | 77 | static const FFCodec *AVCodecInitialize(enum AVCodecID codec_id) |
| 76 | { | 78 | { |
| 77 | const AVCodec *res; | 79 | const AVCodec *res; |
| @@ -81,6 +83,7 @@ static const FFCodec *AVCodecInitialize(enum AVCodecID codec_id) · 3 unmodified lines | |||
| 81 | error("Failed to find decoder"); | 83 | error("Failed to find decoder"); |
| 82 | return ffcodec(res); | 84 | return ffcodec(res); |
| 83 | } | 85 | } |
| 86 | #endif | ||
| 84 | 87 | ||
| 85 | static int subtitle_handler(AVCodecContext *avctx, AVFrame *unused, | 88 | static int subtitle_handler(AVCodecContext *avctx, AVFrame *unused, |
| 86 | int *got_sub_ptr, const AVPacket *avpkt) | 89 | int *got_sub_ptr, const AVPacket *avpkt) |