changeset 6074:258c2ccc68b5 libavformat

Make write_streamheader() return a meaningful error code if no codec tag is defined, rather than return -1.
author stefano
date Wed, 02 Jun 2010 21:57:37 +0000
parents b9ddee1ca18c
children be118b3b67a8
files nutenc.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/nutenc.c	Wed Jun 02 21:57:35 2010 +0000
+++ b/nutenc.c	Wed Jun 02 21:57:37 2010 +0000
@@ -405,7 +405,7 @@
     if (codec->codec_tag){
         put_le32(bc, codec->codec_tag);
     }else
-        return -1;
+        return AVERROR(EINVAL);
 
     put_v(bc, nut->stream[i].time_base - nut->time_base);
     put_v(bc, nut->stream[i].msb_pts_shift);