[FFmpeg-devel] [PATCH 07/12] Make write_streamheader() return a meaningful error code if no codec tag is defined, rather than return -1.
Stefano Sabatini
stefano.sabatini-lala
Wed Jun 2 19:22:35 CEST 2010
---
libavformat/nutenc.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libavformat/nutenc.c b/libavformat/nutenc.c
index 569b092..430310e 100644
--- a/libavformat/nutenc.c
+++ b/libavformat/nutenc.c
@@ -405,7 +405,7 @@ static int write_streamheader(AVFormatContext *avctx, ByteIOContext *bc, AVStrea
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);
--
1.7.1
More information about the ffmpeg-devel
mailing list