[FFmpeg-cvslog] avformat/mpjpegdec: silence unused variable/function warnings

Ganesh Ajjanagadde git at videolan.org
Thu Sep 17 01:29:59 CEST 2015


ffmpeg | branch: master | Ganesh Ajjanagadde <gajjanagadde at gmail.com> | Wed Sep 16 17:25:53 2015 -0400| [9aaa54135c2003ef04ad98cb20739b0b25c7271a] | committer: Timothy Gu

avformat/mpjpegdec: silence unused variable/function warnings

Silences a -Wunused-variable and -Wunused-function observed under GCC 5.2.

Signed-off-by: Ganesh Ajjanagadde <gajjanagadde at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=9aaa54135c2003ef04ad98cb20739b0b25c7271a
---

 libavformat/mpjpegdec.c |   16 ----------------
 1 file changed, 16 deletions(-)

diff --git a/libavformat/mpjpegdec.c b/libavformat/mpjpegdec.c
index d955304..4b57fad 100644
--- a/libavformat/mpjpegdec.c
+++ b/libavformat/mpjpegdec.c
@@ -77,27 +77,11 @@ static int split_tag_value(char **tag, char **value, char *line)
     return 0;
 }
 
-static int check_content_type(char *line)
-{
-    char *tag, *value;
-    int ret = split_tag_value(&tag, &value, line);
-
-    if (ret < 0)
-        return ret;
-
-    if (av_strcasecmp(tag, "Content-type") ||
-        av_strcasecmp(value, "image/jpeg"))
-        return AVERROR_INVALIDDATA;
-
-    return 0;
-}
-
 static int parse_multipart_header(AVIOContext *pb, void *log_ctx);
 
 static int mpjpeg_read_probe(AVProbeData *p)
 {
     AVIOContext *pb;
-    char line[128] = { 0 };
     int ret = 0;
 
     if (p->buf_size < 2 || p->buf[0] != '-' || p->buf[1] != '-')



More information about the ffmpeg-cvslog mailing list