ffmpeg: preserve bits_per_coded sample on stream copy.
authorMichael Niedermayer <michaelni@gmx.at>
Sat, 12 May 2012 19:09:32 +0000 (21:09 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 12 May 2012 19:23:18 +0000 (21:23 +0200)
Fixes Ticket1124

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
ffmpeg.c

index 926ebe2..02efdf4 100644 (file)
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -3033,6 +3033,7 @@ static int transcode_init(void)
             }
             memcpy(codec->extradata, icodec->extradata, icodec->extradata_size);
             codec->extradata_size= icodec->extradata_size;
+            codec->bits_per_coded_sample  = icodec->bits_per_coded_sample;
 
             codec->time_base = ist->st->time_base;
             /*