aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2010-06-02 21:57:40 +0000
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2010-06-02 21:57:40 +0000
commitfa586439936beb5a1cd7a1a605ce70120c03cfbb (patch)
treef2289af3ab814007c77120ee2b31f5c08a0df07e
parentffd5f09844f0a3ec05d27941a117f71cb2e80a8b (diff)
downloadffmpeg-fa586439936beb5a1cd7a1a605ce70120c03cfbb.tar.gz
Make write_streamheader() log a message if there is no codec tag
defined. Originally committed as revision 23434 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavformat/nutenc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libavformat/nutenc.c b/libavformat/nutenc.c
index 31267d357c..061cd870d6 100644
--- a/libavformat/nutenc.c
+++ b/libavformat/nutenc.c
@@ -404,8 +404,10 @@ static int write_streamheader(AVFormatContext *avctx, ByteIOContext *bc, AVStrea
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);