Originally committed as revision 25272 to svn://svn.ffmpeg.org/ffmpeg/trunk
Unified · Split
| @@ -60,6 +60,9 @@ · 59 unmodified lines | |||
| 60 | #ifndef FF_API_AUDIO_OLD | 60 | #ifndef FF_API_AUDIO_OLD |
| 61 | #define FF_API_AUDIO_OLD (LIBAVCODEC_VERSION_MAJOR < 53) | 61 | #define FF_API_AUDIO_OLD (LIBAVCODEC_VERSION_MAJOR < 53) |
| 62 | #endif | 62 | #endif |
| 63 | #ifndef FF_API_VIDEO_OLD | ||
| 64 | #define FF_API_VIDEO_OLD (LIBAVCODEC_VERSION_MAJOR < 53) | ||
| 65 | #endif | ||
| 63 | 66 | ||
| 64 | #define AV_NOPTS_VALUE INT64_C(0x8000000000000000) | 67 | #define AV_NOPTS_VALUE INT64_C(0x8000000000000000) |
| 65 | #define AV_TIME_BASE 1000000 | 68 | #define AV_TIME_BASE 1000000 |
| @@ -3524,7 +3527,7 @@ int avcodec_decode_audio3(AVCodecContext *avctx, int16_t *samples, · 3458 unmodified lines | |||
| 3524 | int *frame_size_ptr, | 3527 | int *frame_size_ptr, |
| 3525 | AVPacket *avpkt); | 3528 | AVPacket *avpkt); |
| 3526 | 3529 | ||
| 3527 | #if LIBAVCODEC_VERSION_MAJOR < 53 | 3530 | #if FF_API_VIDEO_OLD |
| 3528 | /** | 3531 | /** |
| 3529 | * Decode a video frame from buf into picture. | 3532 | * Decode a video frame from buf into picture. |
| 3530 | * Wrapper function which calls avcodec_decode_video2. | 3533 | * Wrapper function which calls avcodec_decode_video2. |
| @@ -591,7 +591,7 @@ int avcodec_encode_subtitle(AVCodecContext *avctx, uint8_t *buf, int buf_size, · 590 unmodified lines | |||
| 591 | return ret; | 591 | return ret; |
| 592 | } | 592 | } |
| 593 | 593 | ||
| 594 | #if LIBAVCODEC_VERSION_MAJOR < 53 | 594 | #if FF_API_VIDEO_OLD |
| 595 | int attribute_align_arg avcodec_decode_video(AVCodecContext *avctx, AVFrame *picture, | 595 | int attribute_align_arg avcodec_decode_video(AVCodecContext *avctx, AVFrame *picture, |
| 596 | int *got_picture_ptr, | 596 | int *got_picture_ptr, |
| 597 | const uint8_t *buf, int buf_size) | 597 | const uint8_t *buf, int buf_size) |