Add audio_service_type field to AVCodecContext for encoding and reporting

of the service type in the audio bitstream.
This commit is contained in:
Justin Ruggles 2011-03-24 12:00:21 -04:00
parent 7e75f9fe5e
commit 34b47d7cbc
5 changed files with 54 additions and 1 deletions

View file

@ -2100,6 +2100,7 @@ static int transcode(AVFormatContext **output_files,
codec->sample_rate = icodec->sample_rate;
codec->channels = icodec->channels;
codec->frame_size = icodec->frame_size;
codec->audio_service_type = icodec->audio_service_type;
codec->block_align= icodec->block_align;
if(codec->block_align == 1 && codec->codec_id == CODEC_ID_MP3)
codec->block_align= 0;