[Ffmpeg-cvslog] r8044 - trunk/libavformat/riff.c

michael subversion
Tue Feb 20 17:20:08 CET 2007


Author: michael
Date: Tue Feb 20 17:20:08 2007
New Revision: 8044

Modified:
   trunk/libavformat/riff.c

Log:
warn if bps from user and what will be stored missmatches


Modified: trunk/libavformat/riff.c
==============================================================================
--- trunk/libavformat/riff.c	(original)
+++ trunk/libavformat/riff.c	Tue Feb 20 17:20:08 2007
@@ -317,6 +317,9 @@
     } else {
         bps = 16;
     }
+    if(bps != enc->bits_per_sample){
+        av_log(enc, AV_LOG_WARNING, "requested bits_per_sample (%d) and actually stored (%d) differ\n", enc->bits_per_sample, bps);
+    }
 
     if (enc->codec_id == CODEC_ID_MP2 || enc->codec_id == CODEC_ID_MP3 || enc->codec_id == CODEC_ID_GSM_MS) {
         blkalign = enc->frame_size; //this is wrong, but seems many demuxers dont work if this is set correctly




More information about the ffmpeg-cvslog mailing list