Browse Source

rtpdec_jpeg: Error out on other unsupported type values as well

Signed-off-by: Martin Storsjö <martin@martin.st>
tags/n1.0
Martin Storsjö 13 years ago
parent
commit
c3bcd22ed3
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      libavformat/rtpdec_jpeg.c

+ 4
- 0
libavformat/rtpdec_jpeg.c View File

@@ -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) {


Loading…
Cancel
Save