intasfid2avid[128];///< conversion table from asf ID 2 AVStream ID
ASFStreamstreams[128];///< it's max number and it's not that big
uint32_tstream_bitrates[128];///< max number of streams, bitrate for each (for streaming)
@ -72,8 +74,22 @@ typedef struct {
intstream_index;
ASFStream*asf_st;///< currently decoded stream
intno_resync_search;
}ASFContext;
staticconstAVOptionoptions[]={
{"no_resync_search","Don't try to resynchronize by looking for a certain optional start code",offsetof(ASFContext,no_resync_search),AV_OPT_TYPE_INT,{.dbl=0},0,1,AV_OPT_FLAG_DECODING_PARAM},
{NULL},
};
staticconstAVClassasf_class={
.class_name="asf demuxer",
.item_name=av_default_item_name,
.option=options,
.version=LIBAVUTIL_VERSION_INT,
};
#undef NDEBUG
#include<assert.h>
@ -709,7 +725,9 @@ static int ff_asf_get_packet(AVFormatContext *s, AVIOContext *pb)
// if we do not know packet size, allow skipping up to 32 kB