Browse Source

rtpdec_jpeg: Coalesce redundant error checks

tags/n3.0
Diego Biurrun 10 years ago
parent
commit
5049f6b772
1 changed files with 0 additions and 6 deletions
  1. +0
    -6
      libavformat/rtpdec_jpeg.c

+ 0
- 6
libavformat/rtpdec_jpeg.c View File

@@ -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;


Loading…
Cancel
Save