Commit 8b3661e2 authored by michael's avatar michael

Don't loose bits_per_raw_sample when transcoding.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18671 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 3cbf2841
...@@ -1748,6 +1748,7 @@ static int av_encode(AVFormatContext **output_files, ...@@ -1748,6 +1748,7 @@ static int av_encode(AVFormatContext **output_files,
av_metadata_set(&ost->st->metadata, "language", lang->value); av_metadata_set(&ost->st->metadata, "language", lang->value);
ost->st->disposition = ist->st->disposition; ost->st->disposition = ist->st->disposition;
codec->bits_per_raw_sample= icodec->bits_per_raw_sample;
if (ost->st->stream_copy) { if (ost->st->stream_copy) {
/* if stream_copy is selected, no need to decode or encode */ /* if stream_copy is selected, no need to decode or encode */
...@@ -1857,6 +1858,7 @@ static int av_encode(AVFormatContext **output_files, ...@@ -1857,6 +1858,7 @@ static int av_encode(AVFormatContext **output_files,
av_exit(1); av_exit(1);
} }
ost->resample_height = icodec->height - (frame_topBand + frame_bottomBand); ost->resample_height = icodec->height - (frame_topBand + frame_bottomBand);
codec->bits_per_raw_sample= 0;
} }
ost->encoding_needed = 1; ost->encoding_needed = 1;
ist->decoding_needed = 1; ist->decoding_needed = 1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment