mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-01-06 14:15:29 +01:00
Make ffmpeg support generic data stream
The patch is the first step to support -dcodec copy
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user