[FFmpeg-cvslog] r15150 - trunk/libavcodec/pcm.c

bcoudurier subversion
Mon Sep 1 23:13:05 CEST 2008


Author: bcoudurier
Date: Mon Sep  1 23:13:05 2008
New Revision: 15150

Log:
make pcm encoder setting bits_per_sample field

Modified:
   trunk/libavcodec/pcm.c

Modified: trunk/libavcodec/pcm.c
==============================================================================
--- trunk/libavcodec/pcm.c	(original)
+++ trunk/libavcodec/pcm.c	Mon Sep  1 23:13:05 2008
@@ -118,7 +118,8 @@ static av_cold int pcm_encode_init(AVCod
         break;
     }
 
-    avctx->block_align = avctx->channels * av_get_bits_per_sample(avctx->codec->id)/8;
+    avctx->bits_per_sample = av_get_bits_per_sample(avctx->codec->id);
+    avctx->block_align = avctx->channels * avctx->bits_per_sample/8;
     avctx->coded_frame= avcodec_alloc_frame();
     avctx->coded_frame->key_frame= 1;
 




More information about the ffmpeg-cvslog mailing list