@@ -67,6 +67,7 @@ typedef struct FLVContext {
int64_t *keyframe_times;
int64_t *keyframe_filepositions;
int missing_streams;
+ AVRational framerate;
} FLVContext;
static int probe(AVProbeData *p, int live)
@@ -142,8 +143,10 @@ static AVStream *create_stream(AVFormatContext
*s, int codec_type)
s->ctx_flags &= ~AVFMTCTX_NOHEADER;
if (codec_type == AVMEDIA_TYPE_AUDIO)
flv->missing_streams &= ~FLV_HEADER_FLAG_HASAUDIO;
- if (codec_type == AVMEDIA_TYPE_VIDEO)
+ if (codec_type == AVMEDIA_TYPE_VIDEO) {
flv->missing_streams &= ~FLV_HEADER_FLAG_HASVIDEO;
+ st->avg_frame_rate = flv->framerate;
+ }