<div dir="ltr"><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div>Hi,<br><br></div>I am trying to understand parsing in ffmpeg.<br><br></div>Please help me clear the following doubts:<br><br>
</div>1.In read_frame_internal there is if loop like this:<br>st = s->cur_st;<br>        if (st) {<br></div>where it gets current stream pointer<br></div>Please clarify if it goes in this if loop or else loop<br></div>
where it calls av_read_packet ?<br><br></div>2.Also in if loop if(!st->need_parsing || !st->parser)<br></div>it checks for these flags ande calls av_add_index_entry<br></div>where these flags(need_parsing,etc) are set/reset ?<br>
<br></div>3.Also if it is av_read_packet function where the actual<br></div>data is getting transferred from AVFormatContext *s to<br></div>AVPacket *pkt or is there any other function?<br><br></div>I am asking all these questions if i am taking simple mp4 file<br>
</div>probing/parsing,demuxing,decoding and playing it.<br><br></div>Please pardon me if i am answering very basic.<br><br></div>Also if there is any documentation about functions/headers used in ffmpeg?<br><br></div><div>
Regards,<br></div><div>Mayank<br></div><br><div><div><div><div><div><div><div><div><br><br><div><div><br></div></div></div></div></div></div></div></div></div></div></div>