summaryrefslogtreecommitdiff
path: root/libavformat/rtpdec_jpeg.c
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2015-12-17 13:04:55 +0100
committerDiego Biurrun <diego@biurrun.de>2015-12-26 10:26:29 +0100
commit5049f6b772891cdf4030a9d572362efc8f7ae97f (patch)
tree998c7ae97742c6e296c059072411b486fc407bd1 /libavformat/rtpdec_jpeg.c
parent2008f76054906e9ff6bf744800af0e5a5bfe61be (diff)
downloadffmpeg-5049f6b772891cdf4030a9d572362efc8f7ae97f.tar.gz
rtpdec_jpeg: Coalesce redundant error checks
Diffstat (limited to 'libavformat/rtpdec_jpeg.c')
-rw-r--r--libavformat/rtpdec_jpeg.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/libavformat/rtpdec_jpeg.c b/libavformat/rtpdec_jpeg.c
index 3bee0b2317..15324bf2ba 100644
--- a/libavformat/rtpdec_jpeg.c
+++ b/libavformat/rtpdec_jpeg.c
@@ -228,12 +228,6 @@ static int jpeg_parse_packet(AVFormatContext *ctx, PayloadContext *jpeg,
buf += 8;
len -= 8;
- /* Parse the restart marker header. */
- if (type > 63) {
- av_log(ctx, AV_LOG_ERROR,
- "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;