[FFmpeg-devel] [PATCH 08/12] Make write_streamheader() log a message if there is no codec tag defined.
Stefano Sabatini
stefano.sabatini-lala
Wed Jun 2 19:22:45 CEST 2010
---
libavformat/nutenc.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/libavformat/nutenc.c b/libavformat/nutenc.c
index 430310e..dc45940 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);
--
1.7.1
More information about the ffmpeg-devel
mailing list