how to change stream index in libavformat
问题 I'm a newbie in ffmpeg. I have a problem when some media has multiple audio streams. Suppose in MKV file, it has three audio streams (MP3, WMA and WMAPro) How do I change the stream index when demuxing using: AVPacket inputPacket; ret = av_read_frame(avInputFmtCtx, &inputPacket) So I'm searching something like change_stream_index(int streamindex), and when I call that function (suppose change_stream_index(2)), the next call to av_read_frame will demux WMAPro frame instead of MP3. Thanks guys!