History

lavc: remove FF_API_RATE_EMU cruft

Anton Khirnov committed 15 years ago

Commit 694c1421 parent e7021c03 files · +0 −16Browse files

Unified · Split

3 files
  1. libavcodec/avcodec.h +0 −10
  2. libavcodec/options.c +0 −3
  3. libavcodec/version.h +0 −3
libavcodec/avcodec.h+0−10
@@ -1203,16 +1203,6 @@ typedef struct AVCodecContext { · 1202 unmodified lines
12031203 */
12041204 enum PixelFormat pix_fmt;
12051205
1206−#if FF_API_RATE_EMU
1207− /**
1208− * Frame rate emulation. If not zero, the lower layer (i.e. format handler)
1209− * has to read frames at native frame rate.
1210− * - encoding: Set by user.
1211− * - decoding: unused
1212− */
1213− attribute_deprecated int rate_emu;
1214−#endif
1215−
12161206 /**
12171207 * If non NULL, 'draw_horiz_band' is called by the libavcodec
12181208 * decoder to draw a horizontal band. It improves cache usage. Not
libavcodec/options.c+0−3
@@ -105,9 +105,6 @@ static const AVOption options[]={ · 104 unmodified lines
105105 {"extradata_size", NULL, OFFSET(extradata_size), FF_OPT_TYPE_INT, DEFAULT, INT_MIN, INT_MAX},
106106 {"time_base", NULL, OFFSET(time_base), FF_OPT_TYPE_RATIONAL, DEFAULT, INT_MIN, INT_MAX},
107107 {"g", "set the group of picture size", OFFSET(gop_size), FF_OPT_TYPE_INT, 12, INT_MIN, INT_MAX, V|E},
108−#if FF_API_RATE_EMU
109−{"rate_emu", "frame rate emulation", OFFSET(rate_emu), FF_OPT_TYPE_INT, DEFAULT, INT_MIN, INT_MAX},
110−#endif
111108 {"ar", "set audio sampling rate (in Hz)", OFFSET(sample_rate), FF_OPT_TYPE_INT, DEFAULT, INT_MIN, INT_MAX},
112109 {"ac", "set number of audio channels", OFFSET(channels), FF_OPT_TYPE_INT, DEFAULT, INT_MIN, INT_MAX},
113110 {"cutoff", "set cutoff bandwidth", OFFSET(cutoff), FF_OPT_TYPE_INT, DEFAULT, INT_MIN, INT_MAX, A|E},
libavcodec/version.h+0−3
@@ -47,9 +47,6 @@ · 46 unmodified lines
4747 #ifndef FF_API_OLD_AUDIOCONVERT
4848 #define FF_API_OLD_AUDIOCONVERT (LIBAVCODEC_VERSION_MAJOR < 54)
4949 #endif
50−#ifndef FF_API_RATE_EMU
51−#define FF_API_RATE_EMU (LIBAVCODEC_VERSION_MAJOR < 53)
52−#endif
5350 #ifndef FF_API_MB_Q
5451 #define FF_API_MB_Q (LIBAVCODEC_VERSION_MAJOR < 53)
5552 #endif

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