aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-10-11 13:58:29 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-10-11 14:03:12 +0200
commitde31814ab07fd971d24c66a5e1ecf464b7ebe033 (patch)
tree42c68ea4d18cdfbac8051772d9853ac7d50b2f7b /libavformat
parentc4aaff8c02cecfe42b730cb922521e4b9f26df30 (diff)
parentb522000e9b2ca36fe5b2751096b9a5f5ed8f87e6 (diff)
downloadandroid_external_ffmpeg-de31814ab07fd971d24c66a5e1ecf464b7ebe033.tar.gz
android_external_ffmpeg-de31814ab07fd971d24c66a5e1ecf464b7ebe033.tar.bz2
android_external_ffmpeg-de31814ab07fd971d24c66a5e1ecf464b7ebe033.zip
Merge commit 'b522000e9b2ca36fe5b2751096b9a5f5ed8f87e6'
* commit 'b522000e9b2ca36fe5b2751096b9a5f5ed8f87e6': avio: introduce avio_closep mpegtsenc: set muxing type notification to verbose vc1dec: Use correct spelling of "opposite" a64multienc: change mc_frame_counter to unsigned arm: call arm-specific rv34dsp init functions under if (ARCH_ARM) svq1: Drop a bunch of useless parentheses parseutils-test: do not print numerical error codes svq1: K&R formatting cosmetics Conflicts: doc/APIchanges libavcodec/svq1dec.c libavcodec/svq1enc.c libavformat/version.h libavutil/parseutils.c tests/ref/fate/parseutils Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/avio.h15
-rw-r--r--libavformat/aviobuf.c7
-rw-r--r--libavformat/mpegtsenc.c6
-rw-r--r--libavformat/version.h2
4 files changed, 26 insertions, 4 deletions
diff --git a/libavformat/avio.h b/libavformat/avio.h
index b16d26f044..17b341d6c7 100644
--- a/libavformat/avio.h
+++ b/libavformat/avio.h
@@ -395,10 +395,25 @@ int avio_open2(AVIOContext **s, const char *url, int flags,
* resource.
*
* @return 0 on success, an AVERROR < 0 on error.
+ * @see avio_closep
*/
int avio_close(AVIOContext *s);
/**
+ * Close the resource accessed by the AVIOContext *s, free it
+ * and set the pointer pointing to it to NULL.
+ * This function can only be used if s was opened by avio_open().
+ *
+ * The internal buffer is automatically flushed before closing the
+ * resource.
+ *
+ * @return 0 on success, an AVERROR < 0 on error.
+ * @see avio_close
+ */
+int avio_closep(AVIOContext **s);
+
+
+/**
* Open a write only memory stream.
*
* @param s new IO context
diff --git a/libavformat/aviobuf.c b/libavformat/aviobuf.c
index 282a62e2b7..dc09a071fc 100644
--- a/libavformat/aviobuf.c
+++ b/libavformat/aviobuf.c
@@ -803,6 +803,13 @@ int avio_close(AVIOContext *s)
return ffurl_close(h);
}
+int avio_closep(AVIOContext **s)
+{
+ int ret = avio_close(*s);
+ *s = NULL;
+ return ret;
+}
+
int avio_printf(AVIOContext *s, const char *fmt, ...)
{
va_list ap;
diff --git a/libavformat/mpegtsenc.c b/libavformat/mpegtsenc.c
index 0b7a678157..1b66babea0 100644
--- a/libavformat/mpegtsenc.c
+++ b/libavformat/mpegtsenc.c
@@ -669,10 +669,10 @@ static int mpegts_write_header(AVFormatContext *s)
ts->sdt_packet_count = ts->sdt_packet_period-1;
if (ts->mux_rate == 1)
- av_log(s, AV_LOG_INFO, "muxrate VBR, ");
+ av_log(s, AV_LOG_VERBOSE, "muxrate VBR, ");
else
- av_log(s, AV_LOG_INFO, "muxrate %d, ", ts->mux_rate);
- av_log(s, AV_LOG_INFO, "pcr every %d pkts, "
+ av_log(s, AV_LOG_VERBOSE, "muxrate %d, ", ts->mux_rate);
+ av_log(s, AV_LOG_VERBOSE, "pcr every %d pkts, "
"sdt every %d, pat/pmt every %d pkts\n",
service->pcr_packet_period,
ts->sdt_packet_period, ts->pat_packet_period);
diff --git a/libavformat/version.h b/libavformat/version.h
index ff11c85b31..1bac92ba3e 100644
--- a/libavformat/version.h
+++ b/libavformat/version.h
@@ -30,7 +30,7 @@
#include "libavutil/avutil.h"
#define LIBAVFORMAT_VERSION_MAJOR 54
-#define LIBAVFORMAT_VERSION_MINOR 31
+#define LIBAVFORMAT_VERSION_MINOR 32
#define LIBAVFORMAT_VERSION_MICRO 100
#define LIBAVFORMAT_VERSION_INT AV_VERSION_INT(LIBAVFORMAT_VERSION_MAJOR, \