diff options
author | Martin Storsjö <martin@martin.st> | 2012-09-11 14:42:22 +0300 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2012-09-12 12:10:56 +0300 |
commit | c3bcd22ed3f843f7240fa190df8f3daa2081290f (patch) | |
tree | 7fcef5396a6e8e6095dab9b39e9b961f044aba78 /libavformat/rtpdec_jpeg.c | |
parent | 1743938df10dd888484f964d5af8fd3957d26809 (diff) | |
download | ffmpeg-c3bcd22ed3f843f7240fa190df8f3daa2081290f.tar.gz |
rtpdec_jpeg: Error out on other unsupported type values as well
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat/rtpdec_jpeg.c')
-rw-r--r-- | libavformat/rtpdec_jpeg.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libavformat/rtpdec_jpeg.c b/libavformat/rtpdec_jpeg.c index 3f53887798..944758d4fc 100644 --- a/libavformat/rtpdec_jpeg.c +++ b/libavformat/rtpdec_jpeg.c @@ -246,6 +246,10 @@ static int jpeg_parse_packet(AVFormatContext *ctx, PayloadContext *jpeg, "Unimplemented RTP/JPEG restart marker header.\n"); return AVERROR_PATCHWELCOME; } + if (type > 1) { + av_log(ctx, AV_LOG_ERROR, "Unimplemented RTP/JPEG type %d\n", type); + return AVERROR_PATCHWELCOME; + } /* Parse the quantization table header. */ if (off == 0) { |