mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
rtpdec_jpeg: Error out on other unsupported type values as well
Signed-off-by: Martin Storsjö <martin@martin.st>
This commit is contained in:
parent
1743938df1
commit
c3bcd22ed3
@ -246,6 +246,10 @@ static int jpeg_parse_packet(AVFormatContext *ctx, PayloadContext *jpeg,
|
|||||||
"Unimplemented RTP/JPEG restart marker header.\n");
|
"Unimplemented RTP/JPEG restart marker header.\n");
|
||||||
return AVERROR_PATCHWELCOME;
|
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. */
|
/* Parse the quantization table header. */
|
||||||
if (off == 0) {
|
if (off == 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user