mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
Make write_streamheader() return a meaningful error code if no codec
tag is defined, rather than return -1. Originally committed as revision 23433 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
fc0c41240e
commit
ffd5f09844
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user