[FFmpeg-cvslog] rtpdec_jpeg: Coalesce redundant error checks

Diego Biurrun git at videolan.org
Sat Jan 2 13:19:56 CET 2016


ffmpeg | branch: master | Diego Biurrun <diego at biurrun.de> | Thu Dec 17 13:04:55 2015 +0100| [5049f6b772891cdf4030a9d572362efc8f7ae97f] | committer: Diego Biurrun

rtpdec_jpeg: Coalesce redundant error checks

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

 libavformat/rtpdec_jpeg.c |    6 ------
 1 file changed, 6 deletions(-)

diff --git a/libavformat/rtpdec_jpeg.c b/libavformat/rtpdec_jpeg.c
index 3bee0b2..15324bf 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;



More information about the ffmpeg-cvslog mailing list