Commit 4b7f4908 authored by Diego Biurrun's avatar Diego Biurrun

flashsv: return more meaningful error value

parent f9a9c8f9
......@@ -366,7 +366,7 @@ static int flashsv_decode_frame(AVCodecContext *avctx, void *data,
if (s->color_depth != 0 && s->color_depth != 2) {
av_log(avctx, AV_LOG_ERROR,
"%dx%d invalid color depth %d\n", i, j, s->color_depth);
return -1;
return AVERROR_INVALIDDATA;
}
if (has_diff) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment