[FFmpeg-cvslog] avcodec/snow: replace unspecific error code
Michael Niedermayer
git at videolan.org
Thu Jun 4 12:47:22 CEST 2015
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu Jun 4 12:39:28 2015 +0200| [4cb7cd4c84146770ccb925b7a95138f750bbdbd7] | committer: Michael Niedermayer
avcodec/snow: replace unspecific error code
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=4cb7cd4c84146770ccb925b7a95138f750bbdbd7
---
libavcodec/snow.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/snow.c b/libavcodec/snow.c
index 33a2dbc..5201d57 100644
--- a/libavcodec/snow.c
+++ b/libavcodec/snow.c
@@ -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)
More information about the ffmpeg-cvslog
mailing list