summaryrefslogtreecommitdiff
path: root/libavformat/riff.c
diff options
context:
space:
mode:
authorLuca Barbato <lu_zero@gentoo.org>2011-04-14 13:32:36 +0200
committerLuca Barbato <lu_zero@gentoo.org>2011-05-03 11:51:55 +0200
commite3b540b42464395eadbc42b87331589e2e9e4301 (patch)
treede502df183f73318840ed448a7b1ba0446b0e98d /libavformat/riff.c
parent4773d904211ec07688418eb9bb78df6467c1ca2f (diff)
Make ffmpeg support generic data stream
The patch is the first step to support -dcodec copy
Diffstat (limited to 'libavformat/riff.c')
-rw-r--r--libavformat/riff.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/riff.c b/libavformat/riff.c
index c73152d40f..e17980a00a 100644
--- a/libavformat/riff.c
+++ b/libavformat/riff.c
@@ -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;