<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Feb 7, 2018 at 3:55 AM, Liyong (R) <span dir="ltr"><<a href="mailto:jackly.li@huawei.com" target="_blank">jackly.li@huawei.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="ZH-CN" vlink="#954F72" link="#0563C1">
<div class="m_803082082442195490WordSection1">
<p class="MsoNormal"><span lang="EN-US">Dear libav-users<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">         <u></u><u></u></span></p>
<p class="MsoNormal" style="text-indent:21.0pt"><span lang="EN-US">When I used “avcodec_decode_video2” for real time Mpeg2 decoding(one-stream-in-one-<wbr>frame-out), I found different behaviors between version 3.4 and version 3.3.3.<u></u><u></u></span></p>
<p class="MsoNormal" style="text-indent:21.0pt"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal" style="text-indent:21.0pt"><span lang="EN-US">When I used ffmpeg-3.3.3, it could work as I expected, just one-in-one-out, However, with ffmpeg-3.4, it could not give any output frames sometimes. It seems that there is some kinds of buffer
 in it.<u></u><u></u></span></p>
<p class="MsoNormal" style="text-indent:21.0pt"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal" style="text-indent:21.0pt"><span lang="EN-US">Can anyone tell me the reason or some method to deal with the problem? Thanks!</span></p></div></div></blockquote><div><br></div><div><br></div><div>It's possible that it is using hw accelerator for the decoding now.</div><div><br></div><div>You should still get all the frames out at the end of the stream when you flush the codec, right?</div><div><br></div><div>corey </div></div><br></div></div>