Mercurial > libavformat.hg
changeset 6075:be118b3b67a8 libavformat
Make write_streamheader() log a message if there is no codec tag
defined.
author | stefano |
---|---|
date | Wed, 02 Jun 2010 21:57:40 +0000 |
parents | 258c2ccc68b5 |
children | 403c73d966e2 |
files | nutenc.c |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/nutenc.c Wed Jun 02 21:57:37 2010 +0000 +++ b/nutenc.c Wed Jun 02 21:57:40 2010 +0000 @@ -404,8 +404,10 @@ put_v(bc, 4); if (codec->codec_tag){ put_le32(bc, codec->codec_tag); - }else + } else { + av_log(avctx, AV_LOG_ERROR, "No codec tag defined for stream %d\n", i); return AVERROR(EINVAL); + } put_v(bc, nut->stream[i].time_base - nut->time_base); put_v(bc, nut->stream[i].msb_pts_shift);