Browse Source

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
tags/n0.8
Stefano Sabatini 15 years ago
parent
commit
fa58643993
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      libavformat/nutenc.c

+ 3
- 1
libavformat/nutenc.c View File

@@ -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);


Loading…
Cancel
Save