<div dir="ltr">Hello everyone,<div><br></div><div style>I want to show how much data is downloaded in my player, and I did as below,</div><div style><br></div><div style><p style="margin:0px;font-size:11px;font-family:Menlo">
            <span style="color:rgb(187,44,162)">if</span> (packet.<span style="color:rgb(79,129,135)">data</span>) {</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">                <span style="color:rgb(79,129,135)">totalBytes</span> += packet.<span style="color:rgb(79,129,135)">size</span>;</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">                <span style="color:rgb(49,89,93)">av_free_packet</span>(&packet);</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">            }</p><p style="margin:0px;font-size:11px;font-family:Menlo"><br></p><p style="margin:0px">in a loop that uses<font face="Menlo"><span style="font-size:11px"> </span></font><span style="font-family:Menlo;font-size:11px;color:rgb(49,89,93)">av_read_frame</span></p>
<p style="margin:0px;font-size:11px;font-family:Menlo"><span style="color:rgb(49,89,93)"><br></span></p>How ever, when I tested a video file that I know the size of the video file, I see that totalBytes is always lower than the file size. How can I calculate the exact value ?<br>
<br><br>Thanks,<br><br><br>-MG</div></div>