diff options
author | Ganesh Ajjanagadde <gajjanagadde@gmail.com> | 2015-09-16 17:25:53 -0400 |
---|---|---|
committer | Timothy Gu <timothygu99@gmail.com> | 2015-09-16 16:29:51 -0700 |
commit | 9aaa54135c2003ef04ad98cb20739b0b25c7271a (patch) | |
tree | 62606a6981c50627e37ed3f4b5cb8f31fe5625cb | |
parent | 27cbe4588aeaa3272f16e395bc2a337e1e43e2b6 (diff) | |
download | ffmpeg-9aaa54135c2003ef04ad98cb20739b0b25c7271a.tar.gz |
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@gmail.com>
-rw-r--r-- | libavformat/mpjpegdec.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/libavformat/mpjpegdec.c b/libavformat/mpjpegdec.c index d9553040e8..4b57fad9ae 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] != '-') |