avformat/yuv4mpegdec: return proper error
The header is not invalid in this case, but ffmpeg still doesn't support it.
This commit is contained in:
@@ -151,6 +151,7 @@ static int yuv4_read_header(AVFormatContext *s)
|
|||||||
case 'm':
|
case 'm':
|
||||||
av_log(s, AV_LOG_ERROR, "YUV4MPEG stream contains mixed "
|
av_log(s, AV_LOG_ERROR, "YUV4MPEG stream contains mixed "
|
||||||
"interlaced and non-interlaced frames.\n");
|
"interlaced and non-interlaced frames.\n");
|
||||||
|
return AVERROR(ENOTSUP);
|
||||||
default:
|
default:
|
||||||
av_log(s, AV_LOG_ERROR, "YUV4MPEG has invalid header.\n");
|
av_log(s, AV_LOG_ERROR, "YUV4MPEG has invalid header.\n");
|
||||||
return AVERROR(EINVAL);
|
return AVERROR(EINVAL);
|
||||||
|
|||||||
Reference in New Issue
Block a user