Commit 1da47eed authored by stefano's avatar stefano

Make write_streamheader() return a meaningful error code if no codec

tag is defined, rather than return -1.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@23433 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent dc5e72a3
...@@ -405,7 +405,7 @@ static int write_streamheader(AVFormatContext *avctx, ByteIOContext *bc, AVStrea ...@@ -405,7 +405,7 @@ static int write_streamheader(AVFormatContext *avctx, ByteIOContext *bc, AVStrea
if (codec->codec_tag){ if (codec->codec_tag){
put_le32(bc, codec->codec_tag); put_le32(bc, codec->codec_tag);
}else }else
return -1; return AVERROR(EINVAL);
put_v(bc, nut->stream[i].time_base - nut->time_base); put_v(bc, nut->stream[i].time_base - nut->time_base);
put_v(bc, nut->stream[i].msb_pts_shift); put_v(bc, nut->stream[i].msb_pts_shift);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment