You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
flashsv: return more meaningful error value
This commit is contained in:
@@ -366,7 +366,7 @@ static int flashsv_decode_frame(AVCodecContext *avctx, void *data,
|
|||||||
if (s->color_depth != 0 && s->color_depth != 2) {
|
if (s->color_depth != 0 && s->color_depth != 2) {
|
||||||
av_log(avctx, AV_LOG_ERROR,
|
av_log(avctx, AV_LOG_ERROR,
|
||||||
"%dx%d invalid color depth %d\n", i, j, s->color_depth);
|
"%dx%d invalid color depth %d\n", i, j, s->color_depth);
|
||||||
return -1;
|
return AVERROR_INVALIDDATA;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (has_diff) {
|
if (has_diff) {
|
||||||
|
Reference in New Issue
Block a user