History

add FF_API_VIDEO_OLD define to disable the deprecated decode_video API

Originally committed as revision 25272 to svn://svn.ffmpeg.org/ffmpeg/trunk

Aurelien Jacobs committed 16 years ago

Commit 164bc381 parent d8e45642 files · +5 −2Browse files

Unified · Split

2 files
  1. libavcodec/avcodec.h +4 −1
  2. libavcodec/utils.c +1 −1
libavcodec/avcodec.h+4−1
@@ -60,6 +60,9 @@ · 59 unmodified lines
6060 #ifndef FF_API_AUDIO_OLD
6161 #define FF_API_AUDIO_OLD (LIBAVCODEC_VERSION_MAJOR < 53)
6262 #endif
63+#ifndef FF_API_VIDEO_OLD
64+#define FF_API_VIDEO_OLD (LIBAVCODEC_VERSION_MAJOR < 53)
65+#endif
6366
6467 #define AV_NOPTS_VALUE INT64_C(0x8000000000000000)
6568 #define AV_TIME_BASE 1000000
@@ -3524,7 +3527,7 @@ int avcodec_decode_audio3(AVCodecContext *avctx, int16_t *samples, · 3458 unmodified lines
35243527 int *frame_size_ptr,
35253528 AVPacket *avpkt);
35263529
3527−#if LIBAVCODEC_VERSION_MAJOR < 53
3530+#if FF_API_VIDEO_OLD
35283531 /**
35293532 * Decode a video frame from buf into picture.
35303533 * Wrapper function which calls avcodec_decode_video2.
libavcodec/utils.c+1−1
@@ -591,7 +591,7 @@ int avcodec_encode_subtitle(AVCodecContext *avctx, uint8_t *buf, int buf_size, · 590 unmodified lines
591591 return ret;
592592 }
593593
594−#if LIBAVCODEC_VERSION_MAJOR < 53
594+#if FF_API_VIDEO_OLD
595595 int attribute_align_arg avcodec_decode_video(AVCodecContext *avctx, AVFrame *picture,
596596 int *got_picture_ptr,
597597 const uint8_t *buf, int buf_size)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t