History

lavf: Switch probesize and max_analyze_duration to 64bit.

Both are only accessible through AVOptions.

Carl Eugen Hoyos committed 11 years ago

Commit b2909721 parent c3117136 files · +13 −12Browse files

Unified · Split

6 files
  1. doc/APIchanges +4 −0
  2. libavformat/avformat.h +3 −3
  3. libavformat/mpegts.c +1 −1
  4. libavformat/options_table.h +2 −2
  5. libavformat/utils.c +2 −2
  6. libavformat/version.h +1 −4
doc/APIchanges+4−0
@@ -15,6 +15,10 @@ libavutil: 2015-08-28 · 14 unmodified lines
1515
1616 API changes, most recent first:
1717
18+2015-09-15 - lavf 57.2.100 - avformat.h
19+ probesize and max_analyze_duration switched to 64bit, both
20+ are only accessible through AVOptions
21+
1822 2015-09-15 - lavf 57.1.100 - avformat.h
1923 bit_rate was changed to 64bit, make sure you update any
2024 printf() or other type sensitive code
libavformat/avformat.h+3−3
@@ -1395,7 +1395,7 @@ typedef struct AVFormatContext { · 1394 unmodified lines
13951395 #define AVFMT_FLAG_KEEP_SIDE_DATA 0x40000 ///< Don't merge side data but keep it separate.
13961396 #define AVFMT_FLAG_FAST_SEEK 0x80000 ///< Enable fast, but inaccurate seeks for some formats
13971397
1398−#if FF_API_PROBESIZE_32
1398+#if AV_HAVE_INCOMPATIBLE_LIBAV_ABI
13991399 /**
14001400 * @deprecated deprecated in favor of probesize2
14011401 */
@@ -1759,7 +1759,7 @@ typedef struct AVFormatContext { · 357 unmodified lines
17591759 * via AVOptions (NO direct access).
17601760 * Can be set to 0 to let avformat choose using a heuristic.
17611761 */
1762−#if FF_API_PROBESIZE_32
1762+#if AV_HAVE_INCOMPATIBLE_LIBAV_ABI
17631763 int64_t max_analyze_duration2;
17641764 #else
17651765 int64_t max_analyze_duration;
@@ -1771,7 +1771,7 @@ typedef struct AVFormatContext { · 5 unmodified lines
17711771 * Demuxing only, set by the caller before avformat_open_input()
17721772 * via AVOptions (NO direct access).
17731773 */
1774−#if FF_API_PROBESIZE_32
1774+#if AV_HAVE_INCOMPATIBLE_LIBAV_ABI
17751775 int64_t probesize2;
17761776 #else
17771777 int64_t probesize;
libavformat/mpegts.c+1−1
@@ -2513,7 +2513,7 @@ static int mpegts_read_header(AVFormatContext *s) · 2512 unmodified lines
25132513 uint8_t buf[8 * 1024] = {0};
25142514 int len;
25152515 int64_t pos, probesize =
2516−#if FF_API_PROBESIZE_32
2516+#if AV_HAVE_INCOMPATIBLE_LIBAV_ABI
25172517 s->probesize ? s->probesize : s->probesize2;
25182518 #else
25192519 s->probesize;
libavformat/options_table.h+2−2
@@ -36,7 +36,7 @@ · 35 unmodified lines
3636 static const AVOption avformat_options[] = {
3737 {"avioflags", NULL, OFFSET(avio_flags), AV_OPT_TYPE_FLAGS, {.i64 = DEFAULT }, INT_MIN, INT_MAX, D|E, "avioflags"},
3838 {"direct", "reduce buffering", 0, AV_OPT_TYPE_CONST, {.i64 = AVIO_FLAG_DIRECT }, INT_MIN, INT_MAX, D|E, "avioflags"},
39−#if FF_API_PROBESIZE_32
39+#if AV_HAVE_INCOMPATIBLE_LIBAV_ABI
4040 {"probesize", "set probing size", OFFSET(probesize2), AV_OPT_TYPE_INT64, {.i64 = 5000000 }, 32, INT64_MAX, D},
4141 #else
4242 {"probesize", "set probing size", OFFSET(probesize), AV_OPT_TYPE_INT64, {.i64 = 5000000 }, 32, INT64_MAX, D},
@@ -58,7 +58,7 @@ static const AVOption avformat_options[] = { · 15 unmodified lines
5858 {"nobuffer", "reduce the latency introduced by optional buffering", 0, AV_OPT_TYPE_CONST, {.i64 = AVFMT_FLAG_NOBUFFER }, 0, INT_MAX, D, "fflags"},
5959 {"seek2any", "allow seeking to non-keyframes on demuxer level when supported", OFFSET(seek2any), AV_OPT_TYPE_INT, {.i64 = 0 }, 0, 1, D},
6060 {"bitexact", "do not write random/volatile data", 0, AV_OPT_TYPE_CONST, { .i64 = AVFMT_FLAG_BITEXACT }, 0, 0, E, "fflags" },
61−#if FF_API_PROBESIZE_32
61+#if AV_HAVE_INCOMPATIBLE_LIBAV_ABI
6262 {"analyzeduration", "specify how many microseconds are analyzed to probe the input", OFFSET(max_analyze_duration2), AV_OPT_TYPE_INT64, {.i64 = 0 }, 0, INT64_MAX, D},
6363 #else
6464 {"analyzeduration", "specify how many microseconds are analyzed to probe the input", OFFSET(max_analyze_duration), AV_OPT_TYPE_INT64, {.i64 = 0 }, 0, INT64_MAX, D},
libavformat/utils.c+2−2
@@ -3085,14 +3085,14 @@ int avformat_find_stream_info(AVFormatContext *ic, AVDictionary **options) · 3084 unmodified lines
30853085 // new streams might appear, no options for those
30863086 int orig_nb_streams = ic->nb_streams;
30873087 int flush_codecs;
3088−#if FF_API_PROBESIZE_32
3088+#if AV_HAVE_INCOMPATIBLE_LIBAV_ABI
30893089 int64_t max_analyze_duration = ic->max_analyze_duration2;
30903090 #else
30913091 int64_t max_analyze_duration = ic->max_analyze_duration;
30923092 #endif
30933093 int64_t max_stream_analyze_duration;
30943094 int64_t max_subtitle_analyze_duration;
3095−#if FF_API_PROBESIZE_32
3095+#if AV_HAVE_INCOMPATIBLE_LIBAV_ABI
30963096 int64_t probesize = ic->probesize2;
30973097 #else
30983098 int64_t probesize = ic->probesize;
libavformat/version.h+1−4
@@ -30,7 +30,7 @@ · 29 unmodified lines
3030 #include "libavutil/version.h"
3131
3232 #define LIBAVFORMAT_VERSION_MAJOR 57
33−#define LIBAVFORMAT_VERSION_MINOR 1
33+#define LIBAVFORMAT_VERSION_MINOR 2
3434 #define LIBAVFORMAT_VERSION_MICRO 100
3535
3636 #define LIBAVFORMAT_VERSION_INT AV_VERSION_INT(LIBAVFORMAT_VERSION_MAJOR, \
@@ -65,9 +65,6 @@ · 28 unmodified lines
6565 #ifndef FF_API_URL_FEOF
6666 #define FF_API_URL_FEOF (LIBAVFORMAT_VERSION_MAJOR < 58)
6767 #endif
68−#ifndef FF_API_PROBESIZE_32
69−#define FF_API_PROBESIZE_32 (LIBAVFORMAT_VERSION_MAJOR < 58)
70−#endif
7168
7269 #ifndef FF_API_R_FRAME_RATE
7370 #define FF_API_R_FRAME_RATE 1

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