[FFmpeg-cvslog] r18671 - trunk/ffmpeg.c
michael
subversion
Fri Apr 24 01:30:16 CEST 2009
Author: michael
Date: Fri Apr 24 01:30:16 2009
New Revision: 18671
Log:
Don't loose bits_per_raw_sample when transcoding.
Modified:
trunk/ffmpeg.c
Modified: trunk/ffmpeg.c
==============================================================================
--- trunk/ffmpeg.c Fri Apr 24 01:14:26 2009 (r18670)
+++ trunk/ffmpeg.c Fri Apr 24 01:30:16 2009 (r18671)
@@ -1748,6 +1748,7 @@ static int av_encode(AVFormatContext **o
av_metadata_set(&ost->st->metadata, "language", lang->value);
ost->st->disposition = ist->st->disposition;
+ codec->bits_per_raw_sample= icodec->bits_per_raw_sample;
if (ost->st->stream_copy) {
/* if stream_copy is selected, no need to decode or encode */
@@ -1857,6 +1858,7 @@ static int av_encode(AVFormatContext **o
av_exit(1);
}
ost->resample_height = icodec->height - (frame_topBand + frame_bottomBand);
+ codec->bits_per_raw_sample= 0;
}
ost->encoding_needed = 1;
ist->decoding_needed = 1;
More information about the ffmpeg-cvslog
mailing list