Make ffmpeg support generic data stream

The patch is the first step to support -dcodec copy
This commit is contained in:
Luca Barbato
2011-04-14 13:32:36 +02:00
parent 4773d90421
commit e3b540b424
3 changed files with 80 additions and 7 deletions

View File

@@ -578,6 +578,7 @@ void ff_parse_specific_params(AVCodecContext *stream, int *au_rate, int *au_ssiz
*au_scale=stream->frame_size;
*au_rate= stream->sample_rate;
}else if(stream->codec_type == AVMEDIA_TYPE_VIDEO ||
stream->codec_type == AVMEDIA_TYPE_DATA ||
stream->codec_type == AVMEDIA_TYPE_SUBTITLE){
*au_scale= stream->time_base.num;
*au_rate = stream->time_base.den;