diff options
author | Stefano Sabatini | 2010-06-02 21:57:37 +0000 |
---|---|---|
committer | Stefano Sabatini | 2010-06-02 21:57:37 +0000 |
commit | ffd5f09844f0a3ec05d27941a117f71cb2e80a8b (patch) | |
tree | 6f61e67795c8bcb507d2064135e0d25f7dff57b5 /libavformat/nutenc.c | |
parent | fc0c41240edc45f3bcdfc863f82c4c5c656803f7 (diff) |
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
Diffstat (limited to 'libavformat/nutenc.c')
-rw-r--r-- | libavformat/nutenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/nutenc.c b/libavformat/nutenc.c index 21a0085c68..31267d357c 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); |