You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
rtpdec_jpeg: Coalesce redundant error checks
This commit is contained in:
@@ -228,12 +228,6 @@ static int jpeg_parse_packet(AVFormatContext *ctx, PayloadContext *jpeg,
|
|||||||
buf += 8;
|
buf += 8;
|
||||||
len -= 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) {
|
if (type > 1) {
|
||||||
av_log(ctx, AV_LOG_ERROR, "Unimplemented RTP/JPEG type %d\n", type);
|
av_log(ctx, AV_LOG_ERROR, "Unimplemented RTP/JPEG type %d\n", type);
|
||||||
return AVERROR_PATCHWELCOME;
|
return AVERROR_PATCHWELCOME;
|
||||||
|
Reference in New Issue
Block a user