[FFmpeg-cvslog] avcodec/h261enc: More specific return code

Michael Niedermayer git at videolan.org
Sat Jan 31 20:00:24 CET 2015


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Jan 31 19:49:57 2015 +0100| [3aefa1eb69c48563302d1f8869d424283b66031d] | committer: Michael Niedermayer

avcodec/h261enc: More specific return code

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=3aefa1eb69c48563302d1f8869d424283b66031d
---

 libavcodec/h261enc.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/h261enc.c b/libavcodec/h261enc.c
index 87eb94f..b888a36 100644
--- a/libavcodec/h261enc.c
+++ b/libavcodec/h261enc.c
@@ -46,7 +46,7 @@ int ff_h261_get_picture_format(int width, int height)
         return 1;
     // ERROR
     else
-        return -1;
+        return AVERROR(EINVAL);
 }
 
 void ff_h261_encode_picture_header(MpegEncContext *s, int picture_number)



More information about the ffmpeg-cvslog mailing list