Browse Source

add FF_API_PARAMETERS_CODEC_ID define to disable the deprecated codec_id

fields in AVFormatParameters

Originally committed as revision 25488 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/n0.8
Aurelien Jacobs 15 years ago
parent
commit
0139fdea08
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      libavformat/avformat.h

+ 4
- 1
libavformat/avformat.h View File

@@ -75,6 +75,9 @@
#ifndef FF_API_LAVF_UNUSED
#define FF_API_LAVF_UNUSED (LIBAVFORMAT_VERSION_MAJOR < 53)
#endif
#ifndef FF_API_PARAMETERS_CODEC_ID
#define FF_API_PARAMETERS_CODEC_ID (LIBAVFORMAT_VERSION_MAJOR < 53)
#endif

/**
* I return the LIBAVFORMAT_VERSION_INT constant. You got
@@ -282,7 +285,7 @@ typedef struct AVFormatParameters {
unsigned int initial_pause:1; /**< Do not begin to play the stream
immediately (RTSP only). */
unsigned int prealloced_context:1;
#if LIBAVFORMAT_VERSION_INT < (53<<16)
#if FF_API_PARAMETERS_CODEC_ID
attribute_deprecated enum CodecID video_codec_id;
attribute_deprecated enum CodecID audio_codec_id;
#endif


Loading…
Cancel
Save