<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:syn="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/">
  <channel rdf:about="http://blog.gmane.org/gmane.comp.video.libav.devel">
    <title>gmane.comp.video.libav.devel</title>
    <link>http://blog.gmane.org/gmane.comp.video.libav.devel</link>
    <description/>
    <syn:updatePeriod>hourly</syn:updatePeriod>
    <syn:updateFrequency>1</syn:updateFrequency>
    <syn:updateBase>1901-01-01T00:00+00:00</syn:updateBase>
    <items>
      <rdf:Seq>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.video.libav.devel/27759"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.video.libav.devel/27753"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.video.libav.devel/27752"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.video.libav.devel/27746"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.video.libav.devel/27745"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.video.libav.devel/27733"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.video.libav.devel/27732"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.video.libav.devel/27729"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.video.libav.devel/27719"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.video.libav.devel/27718"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.video.libav.devel/27712"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.video.libav.devel/27708"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.video.libav.devel/27689"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.video.libav.devel/27687"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.video.libav.devel/27683"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.video.libav.devel/27676"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.video.libav.devel/27670"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.video.libav.devel/27662"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.video.libav.devel/27655"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.video.libav.devel/27650"/>
      </rdf:Seq>
    </items>
    <image rdf:resource="http://gmane.org/img/gmane-25t.png"/>
    <textinput rdf:resource=""/>
  </channel>
  <image rdf:about="http://gmane.org/img/gmane-25t.png">
    <title>Gmane</title>
    <url>http://gmane.org/img/gmane-25t.png</url>
    <link>http://gmane.org</link>
  </image>
  <item rdf:about="http://comments.gmane.org/gmane.comp.video.libav.devel/27759">
    <title>[PATCH 1/5] avconv: split configuring input filtersout of configure_complex_filter</title>
    <link>http://comments.gmane.org/gmane.comp.video.libav.devel/27759</link>
    <description>&lt;pre&gt;---
 avconv.c |   98 ++++++++++++++++++++++++++++++++++++++------------------------
 1 file changed, 61 insertions(+), 37 deletions(-)

diff --git a/avconv.c b/avconv.c
index 5506869..850f591 100644
--- a/avconv.c
+++ b/avconv.c
&amp;lt; at &amp;gt;&amp;lt; at &amp;gt; -1119,6 +1119,65 &amp;lt; at &amp;gt;&amp;lt; at &amp;gt; static int configure_output_filter(FilterGraph *fg, OutputFilter *ofilter, AVFil
     }
 }
 
+static int configure_input_video_filter(FilterGraph *fg, InputFilter *ifilter,
+                                        AVFilterInOut *in)
+{
+    AVFilter *filter = avfilter_get_by_name("buffer");
+    InputStream *ist = ifilter-&amp;gt;ist;
+    AVRational sar;
+    char args[255];
+    int ret;
+
+    sar = ist-&amp;gt;st-&amp;gt;sample_aspect_ratio.num ?
+          ist-&amp;gt;st-&amp;gt;sample_aspect_ratio :
+          ist-&amp;gt;st-&amp;gt;codec-&amp;gt;sample_aspect_ratio;
+    snprintf(args, sizeof(args), "%d:%d:%d:%d:%d:%d:%d", ist-&amp;gt;st-&amp;gt;codec-&amp;gt;width,
+             ist-&amp;gt;st-&amp;gt;codec-&amp;gt;height, ist-&amp;gt;st-&amp;gt;codec-&amp;gt;pix_fmt, 1, AV_TIME_BASE,
+             sar.num, sar.den);
+
+    if ((ret = avfilter_graph_create_filter(&amp;amp;ifilt&lt;/pre&gt;</description>
    <dc:creator>Anton Khirnov</dc:creator>
    <dc:date>2012-05-26T14:54:22</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.video.libav.devel/27753">
    <title>[PATCH] opt: Add AV_OPT_TYPE_INT32</title>
    <link>http://comments.gmane.org/gmane.comp.video.libav.devel/27753</link>
    <description>&lt;pre&gt;This is a safety precaution for options where the variable is
an integer explicitly sized to 32 bit, if we were to be built on
a platform with 64 bit integers.
---
What do people think, is this worthwhile?

 doc/APIchanges     |    3 +++
 libavutil/avutil.h |    2 +-
 libavutil/opt.c    |   10 ++++++++++
 libavutil/opt.h    |    2 ++
 4 files changed, 16 insertions(+), 1 deletion(-)

diff --git a/doc/APIchanges b/doc/APIchanges
index 18105c5..e1f66d5 100644
--- a/doc/APIchanges
+++ b/doc/APIchanges
&amp;lt; at &amp;gt;&amp;lt; at &amp;gt; -13,6 +13,9 &amp;lt; at &amp;gt;&amp;lt; at &amp;gt; libavutil:     2011-04-18
 
 API changes, most recent first:
 
+2012-05-xx - xxxxxxx - lavu 51.31.0
+  Add AV_OPT_TYPE_INT32 and av_opt_eval_int32
+
 2012-05-xx - xxxxxxx - lavf 54.3.0
   Add AVFMT_TS_NONSTRICT format flag to indicate that a muxer supports
   non-increasing monotone timestamps.
diff --git a/libavutil/avutil.h b/libavutil/avutil.h
index 3e51357..1c8e076 100644
--- a/libavutil/avutil.h
+++ b/libavutil/avutil.h
&amp;lt; at &amp;gt;&amp;lt; at &amp;gt; -152,7 +152,7 &amp;lt; at &amp;gt;&amp;lt; at &amp;gt;
  */
 
 #define LIBAVUTIL_VERSION_MAJOR 51
-#define &lt;/pre&gt;</description>
    <dc:creator>Martin Storsjö</dc:creator>
    <dc:date>2012-05-26T10:32:29</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.video.libav.devel/27752">
    <title>[PATCH] rtsp: Check for dynamic payload handlers ifno static payload mapping was found</title>
    <link>http://comments.gmane.org/gmane.comp.video.libav.devel/27752</link>
    <description>&lt;pre&gt;Some systems seem to abuse the static payload types 35 or 36
(which according to IANA are unassigned) for H264.
---
 libavformat/rtsp.c |   14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)

diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c
index 963d467..367181d 100644
--- a/libavformat/rtsp.c
+++ b/libavformat/rtsp.c
&amp;lt; at &amp;gt;&amp;lt; at &amp;gt; -198,7 +198,14 &amp;lt; at &amp;gt;&amp;lt; at &amp;gt; static int sdp_parse_rtpmap(AVFormatContext *s,
      * particular servers ("RealServer Version 6.1.3.970", see issue 1658)
      * have a trailing space. */
     get_word_sep(buf, sizeof(buf), "/ ", &amp;amp;p);
-    if (payload_type &amp;gt;= RTP_PT_PRIVATE) {
+    if (payload_type &amp;lt; RTP_PT_PRIVATE) {
+        /* We are in a standard case
+         * (from http://www.iana.org/assignments/rtp-parameters). */
+        /* search into AVRtpPayloadTypes[] */
+        codec-&amp;gt;codec_id = ff_rtp_codec_id(buf, codec-&amp;gt;codec_type);
+    }
+
+    if (codec-&amp;gt;codec_id == CODEC_ID_NONE) {
         RTPDynamicProtocolHandler *handler =
             ff_rtp_handler_find_by_name(buf, co&lt;/pre&gt;</description>
    <dc:creator>Martin Storsjö</dc:creator>
    <dc:date>2012-05-26T09:40:48</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.video.libav.devel/27746">
    <title>[PATCH 1/2] avprobe: fix formatting.</title>
    <link>http://comments.gmane.org/gmane.comp.video.libav.devel/27746</link>
    <description>&lt;pre&gt;---
 avprobe.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/avprobe.c b/avprobe.c
index ae2eb20..acf0ab9 100644
--- a/avprobe.c
+++ b/avprobe.c
&amp;lt; at &amp;gt;&amp;lt; at &amp;gt; -775,8 +775,7 &amp;lt; at &amp;gt;&amp;lt; at &amp;gt; static int opt_output_format(const char *opt, const char *arg)
 
         print_integer = json_print_integer;
         print_string  = json_print_string;
-    } else
-    if (!strcmp(arg, "ini")) {
+    } else if (!strcmp(arg, "ini")) {
         print_header        = ini_print_header;
         print_footer        = ini_print_footer;
         print_array_header  = ini_print_array_header;
&lt;/pre&gt;</description>
    <dc:creator>Anton Khirnov</dc:creator>
    <dc:date>2012-05-26T06:55:53</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.video.libav.devel/27745">
    <title>[PATCH] log: make colored output more colorful.</title>
    <link>http://comments.gmane.org/gmane.comp.video.libav.devel/27745</link>
    <description>&lt;pre&gt;Green for verbose, cyan for debug.
---
Windows part untested, I'd appreciate it if someone could do that.
---
 libavutil/log.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavutil/log.c b/libavutil/log.c
index 2969355..5e84129 100644
--- a/libavutil/log.c
+++ b/libavutil/log.c
&amp;lt; at &amp;gt;&amp;lt; at &amp;gt; -35,13 +35,13 &amp;lt; at &amp;gt;&amp;lt; at &amp;gt; static int flags;
 
 #if defined(_WIN32) &amp;amp;&amp;amp; !defined(__MINGW32CE__)
 #include &amp;lt;windows.h&amp;gt;
-static const uint8_t color[] = { 12, 12, 12, 14, 7, 7, 7 };
+static const uint8_t color[] = { 12, 12, 12, 14, 7, 10, 11 };
 static int16_t background, attr_orig;
 static HANDLE con;
 #define set_color(x)  SetConsoleTextAttribute(con, background | color[x])
 #define reset_color() SetConsoleTextAttribute(con, attr_orig)
 #else
-static const uint8_t color[] = { 0x41, 0x41, 0x11, 0x03, 9, 9, 9 };
+static const uint8_t color[] = { 0x41, 0x41, 0x11, 0x03, 9, 0x02, 0x06 };
 #define set_color(x)  fprintf(stderr, "\033[%d;3%dm", color[x] &amp;gt;&amp;gt; 4, color[x]&amp;amp;15)
 #define reset_color() fprintf(stderr, "\033[0m"&lt;/pre&gt;</description>
    <dc:creator>Anton Khirnov</dc:creator>
    <dc:date>2012-05-26T06:25:35</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.video.libav.devel/27733">
    <title>[PATCH] avprobe: fix function prototype</title>
    <link>http://comments.gmane.org/gmane.comp.video.libav.devel/27733</link>
    <description>&lt;pre&gt;make opt_output_format return the correct value.
---
 avprobe.c |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/avprobe.c b/avprobe.c
index 5313894..3015763 100644
--- a/avprobe.c
+++ b/avprobe.c
&amp;lt; at &amp;gt;&amp;lt; at &amp;gt; -757,7 +757,7 &amp;lt; at &amp;gt;&amp;lt; at &amp;gt; static int opt_format(const char *opt, const char *arg)
     return 0;
 }
 
-static void opt_output_format(const char *opt, const char *arg)
+static int opt_output_format(const char *opt, const char *arg)
 {
 
     if (!strcmp(arg, "json")) {
&amp;lt; at &amp;gt;&amp;lt; at &amp;gt; -781,8 +781,9 &amp;lt; at &amp;gt;&amp;lt; at &amp;gt; static void opt_output_format(const char *opt, const char *arg)
         print_string  = ini_print_string;
     } else {
         av_log(NULL, AV_LOG_ERROR, "Unsupported formatter %s\n", arg);
-        exit(1);
+        return AVERROR(EINVAL);
     }
+    return 0;
 }
 
 static int opt_show_format_entry(const char *opt, const char *arg)
&amp;lt; at &amp;gt;&amp;lt; at &amp;gt; -835,7 +836,7 &amp;lt; at &amp;gt;&amp;lt; at &amp;gt; static void opt_pretty(void)
 static const OptionDef options[] = {
 #include "cmdutils_common_opts.h"
     { "f", HAS_ARG, {(void*)opt_format}, "force for&lt;/pre&gt;</description>
    <dc:creator>Luca Barbato</dc:creator>
    <dc:date>2012-05-25T22:21:04</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.video.libav.devel/27732">
    <title>[PATCH] rtpenc: Expose the ssrc as an avoption</title>
    <link>http://comments.gmane.org/gmane.comp.video.libav.devel/27732</link>
    <description>&lt;pre&gt;This allows the caller to set it, and allows the caller to query
what it was set to.
---
 libavformat/rtpenc.c |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/libavformat/rtpenc.c b/libavformat/rtpenc.c
index 29fc2f4..71eeb7e 100644
--- a/libavformat/rtpenc.c
+++ b/libavformat/rtpenc.c
&amp;lt; at &amp;gt;&amp;lt; at &amp;gt; -33,6 +33,7 &amp;lt; at &amp;gt;&amp;lt; at &amp;gt;
 static const AVOption options[] = {
     FF_RTP_FLAG_OPTS(RTPMuxContext, flags)
     { "payload_type", "Specify RTP payload type", offsetof(RTPMuxContext, payload_type), AV_OPT_TYPE_INT, {.dbl = -1 }, -1, 127, AV_OPT_FLAG_ENCODING_PARAM },
+    { "ssrc", "Stream identifier", offsetof(RTPMuxContext, ssrc), AV_OPT_TYPE_INT, { 0 }, INT_MIN, INT_MAX, AV_OPT_FLAG_ENCODING_PARAM },
     { NULL },
 };
 
&amp;lt; at &amp;gt;&amp;lt; at &amp;gt; -101,7 +102,8 &amp;lt; at &amp;gt;&amp;lt; at &amp;gt; static int rtp_write_header(AVFormatContext *s1)
     s-&amp;gt;base_timestamp = av_get_random_seed();
     s-&amp;gt;timestamp = s-&amp;gt;base_timestamp;
     s-&amp;gt;cur_timestamp = 0;
-    s-&amp;gt;ssrc = av_get_random_seed();
+    if (!s-&amp;gt;ssrc)
+        s-&amp;gt;ssrc = av_get_random_seed();
     s-&amp;gt;firs&lt;/pre&gt;</description>
    <dc:creator>Martin Storsjö</dc:creator>
    <dc:date>2012-05-25T22:03:10</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.video.libav.devel/27729">
    <title>[PATCH 1/3] rtpenc_chain: Free the URLContext onfailure</title>
    <link>http://comments.gmane.org/gmane.comp.video.libav.devel/27729</link>
    <description>&lt;pre&gt;If an URLContext is passed in, its ownership is given to this
function, and is either owned by the returned AVFormatContext
on a successful return, or freed on failure.
---
 libavformat/rtpenc_chain.c |   18 +++++++++++-------
 1 file changed, 11 insertions(+), 7 deletions(-)

diff --git a/libavformat/rtpenc_chain.c b/libavformat/rtpenc_chain.c
index 16b38d6..3b5ea6c 100644
--- a/libavformat/rtpenc_chain.c
+++ b/libavformat/rtpenc_chain.c
&amp;lt; at &amp;gt;&amp;lt; at &amp;gt; -28,25 +28,23 &amp;lt; at &amp;gt;&amp;lt; at &amp;gt;
 AVFormatContext *ff_rtp_chain_mux_open(AVFormatContext *s, AVStream *st,
                                        URLContext *handle, int packet_size)
 {
-    AVFormatContext *rtpctx;
+    AVFormatContext *rtpctx = NULL;
     int ret;
     AVOutputFormat *rtp_format = av_guess_format("rtp", NULL, NULL);
     uint8_t *rtpflags;
     AVDictionary *opts = NULL;
 
     if (!rtp_format)
-        return NULL;
+        goto fail;
 
     /* Allocate an AVFormatContext for each output stream */
     rtpctx = avformat_alloc_context();
     if (!rtpctx)
-        re&lt;/pre&gt;</description>
    <dc:creator>Martin Storsjö</dc:creator>
    <dc:date>2012-05-25T22:00:03</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.video.libav.devel/27719">
    <title>[PATCH 1/3] avprobe: improve formatting</title>
    <link>http://comments.gmane.org/gmane.comp.video.libav.devel/27719</link>
    <description>&lt;pre&gt;Do not use decimals if not needed.
---
 avprobe.c |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/avprobe.c b/avprobe.c
index 6182875..5df6937 100644
--- a/avprobe.c
+++ b/avprobe.c
&amp;lt; at &amp;gt;&amp;lt; at &amp;gt; -90,11 +90,12 &amp;lt; at &amp;gt;&amp;lt; at &amp;gt; static char *value_string(char *buf, int buf_size, double val, const char *unit)
             val  /= pow(10, index * 3);
             prefix_string = decimal_unit_prefixes[index];
         }
-
-        snprintf(buf, buf_size, "%.3f %s%s", val, prefix_string,
+        snprintf(buf, buf_size, "%.*f%s%s",
+                 index ? 3 : 0, val,
+                 prefix_string,
                  show_value_unit ? unit : "");
     } else {
-        snprintf(buf, buf_size, "%f %s", val, show_value_unit ? unit : "");
+        snprintf(buf, buf_size, "%f%s", val, show_value_unit ? unit : "");
     }
 
     return buf;
&lt;/pre&gt;</description>
    <dc:creator>Luca Barbato</dc:creator>
    <dc:date>2012-05-25T19:22:27</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.video.libav.devel/27718">
    <title>[PATCH] cosmetics: Fix indentation</title>
    <link>http://comments.gmane.org/gmane.comp.video.libav.devel/27718</link>
    <description>&lt;pre&gt;---
 libavformat/sapenc.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/sapenc.c b/libavformat/sapenc.c
index ca133f5..0c3e95e 100644
--- a/libavformat/sapenc.c
+++ b/libavformat/sapenc.c
&amp;lt; at &amp;gt;&amp;lt; at &amp;gt; -209,7 +209,7 &amp;lt; at &amp;gt;&amp;lt; at &amp;gt; static int sap_write_header(AVFormatContext *s)
     pos += strlen(&amp;amp;sap-&amp;gt;ann[pos]) + 1;
 
     if (av_sdp_create(contexts, s-&amp;gt;nb_streams, &amp;amp;sap-&amp;gt;ann[pos],
-                       sap-&amp;gt;ann_size - pos)) {
+                      sap-&amp;gt;ann_size - pos)) {
         ret = AVERROR_INVALIDDATA;
         goto fail;
     }
&lt;/pre&gt;</description>
    <dc:creator>Martin Storsjö</dc:creator>
    <dc:date>2012-05-25T19:16:19</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.video.libav.devel/27712">
    <title>[PATCH] avprobe: display the codec profile inshow_stream()</title>
    <link>http://comments.gmane.org/gmane.comp.video.libav.devel/27712</link>
    <description>&lt;pre&gt;From: Christian &amp;lt;schmidt-IABvq36EpHazQB+pC5nmwQ&amp;lt; at &amp;gt;public.gmane.org&amp;gt;

---
 avprobe.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/avprobe.c b/avprobe.c
index 6182875..99e9920 100644
--- a/avprobe.c
+++ b/avprobe.c
&amp;lt; at &amp;gt;&amp;lt; at &amp;gt; -177,6 +177,7 &amp;lt; at &amp;gt;&amp;lt; at &amp;gt; static void show_stream(AVFormatContext *fmt_ctx, int stream_idx)
     AVCodecContext *dec_ctx;
     AVCodec *dec;
     char val_str[128];
+    const char * profile;
     AVDictionaryEntry *tag = NULL;
     AVRational display_aspect_ratio;
 
&amp;lt; at &amp;gt;&amp;lt; at &amp;gt; -201,6 +202,10 &amp;lt; at &amp;gt;&amp;lt; at &amp;gt; static void show_stream(AVFormatContext *fmt_ctx, int stream_idx)
         printf("codec_tag_string=%s\n", val_str);
         printf("codec_tag=0x%04x\n", dec_ctx-&amp;gt;codec_tag);
 
+        /* print profile, if there is one */
+        if (dec &amp;amp;&amp;amp; (profile = av_get_profile_name(dec, dec_ctx-&amp;gt;profile)))
+            printf ("profile=%s\n", profile);
+
         switch (dec_ctx-&amp;gt;codec_type) {
         case AVMEDIA_TYPE_VIDEO:
             printf("width=%d\n", dec_ctx-&amp;gt;width);
&lt;/pre&gt;</description>
    <dc:creator>Christian Schmidt</dc:creator>
    <dc:date>2012-05-25T12:14:32</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.video.libav.devel/27708">
    <title>[PATCH] http: Add support for using persistentconnections</title>
    <link>http://comments.gmane.org/gmane.comp.video.libav.devel/27708</link>
    <description>&lt;pre&gt;Add 'multiple_request' a new AVOption which indicates if we want to
use persistent connections (ie. Connection: keep-alive)
---
 libavformat/http.c |   16 +++++++++++++---
 1 file changed, 13 insertions(+), 3 deletions(-)

diff --git a/libavformat/http.c b/libavformat/http.c
index f978dc1..f448506 100644
--- a/libavformat/http.c
+++ b/libavformat/http.c
&amp;lt; at &amp;gt;&amp;lt; at &amp;gt; -53,6 +53,7 &amp;lt; at &amp;gt;&amp;lt; at &amp;gt; typedef struct {
     int chunked_post;
     int end_chunked_post;   /**&amp;lt; A flag which indicates if the end of chunked encoding has been sent. */
     int end_header;         /**&amp;lt; A flag which indicates we have finished to read POST reply. */
+    int multiple_request;   /**&amp;lt; A flag which indicates if we use persistent connections. */
 } HTTPContext;
 
 #define OFFSET(x) offsetof(HTTPContext, x)
&amp;lt; at &amp;gt;&amp;lt; at &amp;gt; -61,6 +62,7 &amp;lt; at &amp;gt;&amp;lt; at &amp;gt; typedef struct {
 static const AVOption options[] = {
 {"chunked_post", "use chunked transfer-encoding for posts", OFFSET(chunked_post), AV_OPT_TYPE_INT, {.dbl = 1}, 0, 1, E },
 {"headers", "custom HTTP headers, can override built i&lt;/pre&gt;</description>
    <dc:creator>Samuel Pitoiset</dc:creator>
    <dc:date>2012-05-25T10:37:18</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.video.libav.devel/27689">
    <title>[PATCH] opt: Add av_opt_set_bin(),a new function which sets binary data via AVOptions</title>
    <link>http://comments.gmane.org/gmane.comp.video.libav.devel/27689</link>
    <description>&lt;pre&gt;---
 libavutil/opt.c |   28 ++++++++++++++++++++++++++++
 libavutil/opt.h |    1 +
 2 files changed, 29 insertions(+)

diff --git a/libavutil/opt.c b/libavutil/opt.c
index 7c53024..1bee3a3 100644
--- a/libavutil/opt.c
+++ b/libavutil/opt.c
&amp;lt; at &amp;gt;&amp;lt; at &amp;gt; -316,6 +316,34 &amp;lt; at &amp;gt;&amp;lt; at &amp;gt; int av_opt_set_q(void *obj, const char *name, AVRational val, int search_flags)
     return set_number(obj, name, val.num, val.den, 1, search_flags);
 }
 
+int av_opt_set_bin(void *obj, const char *name, const uint8_t *val, int len, int search_flags)
+{
+    void *target_obj;
+    const AVOption *o = av_opt_find2(obj, name, NULL, 0, search_flags, &amp;amp;target_obj);
+    uint8_t *ptr;
+    uint8_t **dst;
+    int *lendst;
+
+    if (!o || !target_obj)
+        return AVERROR_OPTION_NOT_FOUND;
+
+    if (o-&amp;gt;type != AV_OPT_TYPE_BINARY)
+        return AVERROR(EINVAL);
+
+    ptr = av_malloc(len);
+    if (!ptr)
+        return AVERROR(ENOMEM);
+
+    dst = (uint8_t **)(((uint8_t *)target_obj) + o-&amp;gt;offset);
+    lendst = (int *)(dst + 1);
+
+    *dst = ptr;
+  &lt;/pre&gt;</description>
    <dc:creator>Samuel Pitoiset</dc:creator>
    <dc:date>2012-05-24T16:54:55</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.video.libav.devel/27687">
    <title>Convert a video</title>
    <link>http://comments.gmane.org/gmane.comp.video.libav.devel/27687</link>
    <description>&lt;pre&gt;Hello!
I want to change the libavformat/output-example.c to convert a video.
I add a new parameter. (forexample: ./output-example out.flv in.mpg) But
the problem is how to get the information of the file?
I think I need to get it in the variable  AVStream *video_st;
I searched in the source-code, but I couldn't find a way to load the
information.

    for (;;) {
        /* Compute current audio and video time. */
        if (audio_st)
            audio_pts = (double)audio_st-&amp;gt;pts.val * audio_st-&amp;gt;time_base.num
/ audio_st-&amp;gt;time_base.den;
        else
            audio_pts = 0.0;

        if (video_st)
            video_pts = (double)video_st-&amp;gt;pts.val * video_st-&amp;gt;time_base.num
/
                        video_st-&amp;gt;time_base.den;
        else
            video_pts = 0.0;

        if ((!audio_st || audio_pts &amp;gt;= STREAM_DURATION) &amp;amp;&amp;amp;
            (!video_st || video_pts &amp;gt;= STREAM_DURATION))
            break;

        /* write interleaved audio and video frames */
        if (!video_st || (video_st &amp;amp;&amp;amp; audio_st &amp;amp;&amp;amp; audio&lt;/pre&gt;</description>
    <dc:creator>Bernhard Pöchtrager</dc:creator>
    <dc:date>2012-05-24T14:31:10</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.video.libav.devel/27683">
    <title>[PATCH 2/2] rtmp: Pass the proper return code inrtmp_handshake</title>
    <link>http://comments.gmane.org/gmane.comp.video.libav.devel/27683</link>
    <description>&lt;pre&gt;---
 libavformat/rtmpproto.c |   13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/libavformat/rtmpproto.c b/libavformat/rtmpproto.c
index 1f78d1c..9af4584 100644
--- a/libavformat/rtmpproto.c
+++ b/libavformat/rtmpproto.c
&amp;lt; at &amp;gt;&amp;lt; at &amp;gt; -639,15 +639,16 &amp;lt; at &amp;gt;&amp;lt; at &amp;gt; static int rtmp_handshake(URLContext *s, RTMPContext *rt)
         return ret;
     }
 
-    i = ffurl_read_complete(rt-&amp;gt;stream, serverdata, RTMP_HANDSHAKE_PACKET_SIZE + 1);
-    if (i != RTMP_HANDSHAKE_PACKET_SIZE + 1) {
+    if ((ret = ffurl_read_complete(rt-&amp;gt;stream, serverdata,
+                                   RTMP_HANDSHAKE_PACKET_SIZE + 1)) &amp;lt; 0) {
         av_log(s, AV_LOG_ERROR, "Cannot read RTMP handshake response\n");
-        return AVERROR(EIO);
+        return ret;
     }
-    i = ffurl_read_complete(rt-&amp;gt;stream, clientdata, RTMP_HANDSHAKE_PACKET_SIZE);
-    if (i != RTMP_HANDSHAKE_PACKET_SIZE) {
+
+    if ((ret = ffurl_read_complete(rt-&amp;gt;stream, clientdata,
+                                   RTMP_HANDSHAKE_PACKET_SIZE)) &amp;lt; 0)&lt;/pre&gt;</description>
    <dc:creator>Samuel Pitoiset</dc:creator>
    <dc:date>2012-05-24T11:48:42</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.video.libav.devel/27676">
    <title>[PATCH] rtmp: Check return codes of net IO operations</title>
    <link>http://comments.gmane.org/gmane.comp.video.libav.devel/27676</link>
    <description>&lt;pre&gt;---
 libavformat/rtmppkt.c   |   14 ++++++---
 libavformat/rtmpproto.c |   75 +++++++++++++++++++++++++++++++++++------------
 2 files changed, 67 insertions(+), 22 deletions(-)

diff --git a/libavformat/rtmppkt.c b/libavformat/rtmppkt.c
index 474f637..0b333bf 100644
--- a/libavformat/rtmppkt.c
+++ b/libavformat/rtmppkt.c
&amp;lt; at &amp;gt;&amp;lt; at &amp;gt; -151,7 +151,10 &amp;lt; at &amp;gt;&amp;lt; at &amp;gt; int ff_rtmp_packet_read(URLContext *h, RTMPPacket *p,
         offset    += chunk_size;
         size      += chunk_size;
         if (data_size &amp;gt; 0) {
-            ffurl_read_complete(h, &amp;amp;t, 1); //marker
+            if (ffurl_read_complete(h, &amp;amp;t, 1) != 1) { // marker
+                ff_rtmp_packet_destroy(p);
+                return AVERROR(EIO);
+            }
             size++;
             if (t != (0xC0 + channel_id))
                 return -1;
&amp;lt; at &amp;gt;&amp;lt; at &amp;gt; -218,15 +221,18 &amp;lt; at &amp;gt;&amp;lt; at &amp;gt; int ff_rtmp_packet_write(URLContext *h, RTMPPacket *pkt,
     }
     prev_pkt[pkt-&amp;gt;channel_id].extra      = pkt-&amp;gt;extra;
 
-    ffurl_write(h, pkt_hdr, p-pkt_hdr);
+    if (ffurl_write(h, pkt_hdr, p&lt;/pre&gt;</description>
    <dc:creator>Samuel Pitoiset</dc:creator>
    <dc:date>2012-05-23T21:33:10</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.video.libav.devel/27670">
    <title>[PATCH] rtmp: WIP: check retcodes of net IO operations</title>
    <link>http://comments.gmane.org/gmane.comp.video.libav.devel/27670</link>
    <description>&lt;pre&gt;Samuel, while you're at enhancing rtmp proto, could you please add also checks on net connection IO operations? I planned to do it by myself, but as you are already preparing the patchset, it makes more sense to ask you for this.
The reason for this patch is case when RTMP server is shut down while we publish the stream onto it. Currently it just strikes the application with SIGPIPE. I have an environment for testing this issue.
Thanks in advance, Samuel.
---8&amp;lt;---
---
 libavformat/rtmppkt.c   |    9 +++-
 libavformat/rtmpproto.c |  103 ++++++++++++++++++++++++++++++++--------------
 2 files changed, 77 insertions(+), 35 deletions(-)

diff --git a/libavformat/rtmppkt.c b/libavformat/rtmppkt.c
index 61e159b..8e8ca26 100644
--- a/libavformat/rtmppkt.c
+++ b/libavformat/rtmppkt.c
&amp;lt; at &amp;gt;&amp;lt; at &amp;gt; -216,15 +216,18 &amp;lt; at &amp;gt;&amp;lt; at &amp;gt; int ff_rtmp_packet_write(URLContext *h, RTMPPacket *pkt,
     }
     prev_pkt[pkt-&amp;gt;channel_id].extra      = pkt-&amp;gt;extra;
 
-    ffurl_write(h, pkt_hdr, p-pkt_hdr);
+    if (ffurl_write(h, pkt_hdr, p-pkt_hdr) &amp;lt; 0)
+ &lt;/pre&gt;</description>
    <dc:creator>Andrey Utkin</dc:creator>
    <dc:date>2012-05-23T20:50:03</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.video.libav.devel/27662">
    <title>[PATCH] movenc: Don't write the 'wave' atom or itschild 'enda' for lpcm audio.</title>
    <link>http://comments.gmane.org/gmane.comp.video.libav.devel/27662</link>
    <description>&lt;pre&gt;It's left over from stsd v0. QuickTime 7 no longer writes 'wave' or 'enda'
when 'lpcm' is the audio tag.
---
 libavformat/movenc.c |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)

diff --git a/libavformat/movenc.c b/libavformat/movenc.c
index 35c03dd..9a57d46 100644
--- a/libavformat/movenc.c
+++ b/libavformat/movenc.c
&amp;lt; at &amp;gt;&amp;lt; at &amp;gt; -403,8 +403,6 &amp;lt; at &amp;gt;&amp;lt; at &amp;gt; static int mov_write_wave_tag(AVIOContext *pb, MOVTrack *track)
         ffio_wfourcc(pb, "mp4a");
         avio_wb32(pb, 0);
         mov_write_esds_tag(pb, track);
-    } else if (mov_pcm_le_gt16(track-&amp;gt;enc-&amp;gt;codec_id)) {
-        mov_write_enda_tag(pb);
     } else if (track-&amp;gt;enc-&amp;gt;codec_id == CODEC_ID_AMR_NB) {
         mov_write_amr_tag(pb, track);
     } else if (track-&amp;gt;enc-&amp;gt;codec_id == CODEC_ID_AC3) {
&amp;lt; at &amp;gt;&amp;lt; at &amp;gt; -641,8 +639,7 &amp;lt; at &amp;gt;&amp;lt; at &amp;gt; static int mov_write_audio_tag(AVIOContext *pb, MOVTrack *track)
         track-&amp;gt;enc-&amp;gt;codec_id == CODEC_ID_AMR_NB ||
         track-&amp;gt;enc-&amp;gt;codec_id == CODEC_ID_ALAC ||
         track-&amp;gt;enc-&amp;gt;codec_id == CODEC_ID_ADPCM_MS ||
-        track-&amp;gt;&lt;/pre&gt;</description>
    <dc:creator>Alex Converse</dc:creator>
    <dc:date>2012-05-23T18:39:16</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.video.libav.devel/27655">
    <title>[PATCH] flvdec: Make sure sample_rate is set to theupdated value</title>
    <link>http://comments.gmane.org/gmane.comp.video.libav.devel/27655</link>
    <description>&lt;pre&gt;The sample_rate variable is used for checks for audio format
changes at the end of the function.

This fixes cases where the sample rate was set from the codec
id by flv_set_audio_codec (as for nellymoser 8 kHz/16 kHz),
so the value set to last_sample_rate wasn't equal to sample_rate
at this point. This caused the demuxer otherwise reports a spurious
change to 5512 Hz and back to the correct one.

Updating channels in the same way is only done for consistency.
Currently, flv_set_audio_codec doesn't update that value.
---
 libavformat/flvdec.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavformat/flvdec.c b/libavformat/flvdec.c
index 7c4b792..b9d65a6 100644
--- a/libavformat/flvdec.c
+++ b/libavformat/flvdec.c
&amp;lt; at &amp;gt;&amp;lt; at &amp;gt; -571,8 +571,8 &amp;lt; at &amp;gt;&amp;lt; at &amp;gt; static int flv_read_packet(AVFormatContext *s, AVPacket *pkt)
         }
         if(!st-&amp;gt;codec-&amp;gt;codec_id){
             flv_set_audio_codec(s, st, st-&amp;gt;codec, flags &amp;amp; FLV_AUDIO_CODECID_MASK);
-            flv-&amp;gt;last_sample_rate = st-&amp;gt;codec-&amp;gt;sample_rate&lt;/pre&gt;</description>
    <dc:creator>Martin Storsjö</dc:creator>
    <dc:date>2012-05-23T13:32:32</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.video.libav.devel/27650">
    <title>[PATCH 1/2] adpcm: Fix crash with broken,non-stereo samples</title>
    <link>http://comments.gmane.org/gmane.comp.video.libav.devel/27650</link>
    <description>&lt;pre&gt;From: Michael Niedermayer &amp;lt;michaelni-RbZlAiThDcE&amp;lt; at &amp;gt;public.gmane.org&amp;gt;

Fixes half of http://ffmpeg.org/trac/ffmpeg/ticket/794
Adresses CVE-2012-0852

Bug found by: Oana Stratulat
CC: libav-stable-LOOeJiBropLYtjvyW6yDsg&amp;lt; at &amp;gt;public.gmane.org

Signed-off-by: Michael Niedermayer &amp;lt;michaelni-RbZlAiThDcE&amp;lt; at &amp;gt;public.gmane.org&amp;gt;
Signed-off-by: Reinhard Tartler &amp;lt;siretart-t24Mxcv9r2eELgA04lAiVw&amp;lt; at &amp;gt;public.gmane.org&amp;gt;
(cherry picked from commit 608708009f69ba4cecebf05120c696167494c897)
---
 libavcodec/adpcm.c |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/libavcodec/adpcm.c b/libavcodec/adpcm.c
index 8170e7f..dc63fcd 100644
--- a/libavcodec/adpcm.c
+++ b/libavcodec/adpcm.c
&amp;lt; at &amp;gt;&amp;lt; at &amp;gt; -926,6 +926,9 &amp;lt; at &amp;gt;&amp;lt; at &amp;gt; static int adpcm_decode_frame(AVCodecContext *avctx, void *data,
         /* Each EA ADPCM frame has a 12-byte header followed by 30-byte pieces,
            each coding 28 stereo samples. */
 
+        if(avctx-&amp;gt;channels != 2)
+            return AVERROR_INVALIDDATA;
+
         current_left_sample   = sign_extend(bytestream2_get_le16u(&amp;amp;&lt;/pre&gt;</description>
    <dc:creator>Reinhard Tartler</dc:creator>
    <dc:date>2012-05-23T12:24:14</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.video.libav.devel/27644">
    <title>[PATCH]  Define SHUT_RD, SHUT_WR and SHUT_RDWR on OS/2</title>
    <link>http://comments.gmane.org/gmane.comp.video.libav.devel/27644</link>
    <description>&lt;pre&gt;---
 libavformat/os_support.h |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/libavformat/os_support.h b/libavformat/os_support.h
index 1088c6c..223203a 100644
--- a/libavformat/os_support.h
+++ b/libavformat/os_support.h
&amp;lt; at &amp;gt;&amp;lt; at &amp;gt; -45,6 +45,12 &amp;lt; at &amp;gt;&amp;lt; at &amp;gt; static inline int is_dos_path(const char *path)
     return 0;
 }

+#if defined(__OS2__)
+#define SHUT_RD 0
+#define SHUT_WR 1
+#define SHUT_RDWR 2
+#endif
+
 #if defined(_WIN32)
 #define SHUT_RD SD_RECEIVE
 #define SHUT_WR SD_SEND
--
1.7.2.3
&lt;/pre&gt;</description>
    <dc:creator>Dave Yeo</dc:creator>
    <dc:date>2012-05-23T20:34:13</dc:date>
  </item>
  <textinput rdf:about="http://search.gmane.org/?group=$group=gmane.comp.video.libav.devel">
    <title>Search Engine</title>
    <description>Search the mailing list at Gmane</description>
    <name>query</name>
    <link>http://search.gmane.org/?group=$group=gmane.comp.video.libav.devel</link>
  </textinput>
</rdf:RDF>

