avcodec/snow: replace unspecific error code
authorMichael Niedermayer <michaelni@gmx.at>
Thu, 4 Jun 2015 10:39:28 +0000 (12:39 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 4 Jun 2015 10:39:28 +0000 (12:39 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/snow.c

index 33a2dbc..5201d57 100644 (file)
@@ -679,7 +679,7 @@ int ff_snow_frame_start(SnowContext *s){
         s->ref_frames= i;
         if(s->ref_frames==0){
             av_log(s->avctx,AV_LOG_ERROR, "No reference frames\n");
-            return -1;
+            return AVERROR_INVALIDDATA;
         }
     }
     if ((ret = ff_snow_get_buffer(s, s->current_picture)) < 0)