1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

flvdemux: export flags for nellymoser through side data.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2011-11-30 21:16:33 +01:00
parent 8f025f2f60
commit 957a593cd9

View File

@ -580,6 +580,8 @@ static int flv_read_packet(AVFormatContext *s, AVPacket *pkt)
pkt->dts = dts;
pkt->pts = pts == AV_NOPTS_VALUE ? dts : pts;
pkt->stream_index = st->index;
if(st->codec->codec_id == CODEC_ID_NELLYMOSER)
av_packet_new_side_data(pkt, 'F', 1)[0]= flags;
if ( stream_type == FLV_STREAM_TYPE_AUDIO ||
((flags & FLV_VIDEO_FRAMETYPE_MASK) == FLV_FRAME_KEY) ||