]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/flashsv.c
ffv1enc: switch to encode2().
[ffmpeg] / libavcodec / flashsv.c
index b1424a5586eeda5b8cf5ec0d3530dfc469816069..c99c21c719905f440ff13c4c7ca3c88815aba89d 100644 (file)
@@ -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) {