[FFmpeg-cvslog] r23433 - trunk/libavformat/nutenc.c
stefano
subversion
Wed Jun 2 23:57:38 CEST 2010
Author: stefano
Date: Wed Jun 2 23:57:37 2010
New Revision: 23433
Log:
Make write_streamheader() return a meaningful error code if no codec
tag is defined, rather than return -1.
Modified:
trunk/libavformat/nutenc.c
Modified: trunk/libavformat/nutenc.c
==============================================================================
--- trunk/libavformat/nutenc.c Wed Jun 2 23:57:35 2010 (r23432)
+++ trunk/libavformat/nutenc.c Wed Jun 2 23:57:37 2010 (r23433)
@@ -405,7 +405,7 @@ static int write_streamheader(AVFormatCo
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);
More information about the ffmpeg-cvslog
mailing list