<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
Hello everyone,</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
<p style="margin-top: 0px; margin-bottom: var(--s-prose-spacing); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Liberation Sans", sans-serif; font-size: 15px; clear: both; color: rgb(35, 38, 41); text-align: left; background-color: rgb(255, 255, 255);">
i'm trying to decode my Hevc file in c++ with using FFmpeg. I used Hevc decoder and try to save the frames in ppm format. My Hevc file has 677 frames, which i checked with ffprobe in command window. But i any got 676 frames with my project. Also i have checked
 with other Hevc files, the results are same, i got always one frame less. And i assumed that, that could happy in the position, which at last phase i tried to flush the decoder. That means, that could be 3 frames in the decoder to be flush, but i got only
 2 frames.</p>
<p style="margin-top: 0px; margin-bottom: var(--s-prose-spacing); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Liberation Sans", sans-serif; font-size: 15px; clear: both; color: rgb(35, 38, 41); text-align: left; background-color: rgb(255, 255, 255);">
Can anybody help me, i attach my cpp file and add a link to the whole project files. What you need is to define test file path and output directory for saved images. Which are for me like that:</p>
<div style="margin-top: 0px; margin-bottom: 0px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Liberation Sans", sans-serif; font-size: 15px; clear: both; text-align: left; color: rgb(35, 38, 41); background-color: rgb(255, 255, 255);">
D:\Workspace\TestProjects\FFmpegDecoder\TestFiles\sample_1280x720.hevc<br>
D:\Workspace\TestProjects\FFmpegDecoder\Output<br>
</div>
<div style="margin-top: 0px; margin-bottom: 0px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Liberation Sans", sans-serif; font-size: 15px; clear: both; text-align: left; color: rgb(35, 38, 41); background-color: rgb(255, 255, 255);">
<br>
</div>
<p style="margin-top: 0px; margin-bottom: var(--s-prose-spacing); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Liberation Sans", sans-serif; font-size: 15px; clear: both; color: rgb(35, 38, 41); text-align: left; background-color: rgb(255, 255, 255);">
Thanks a lot!</p>
<p style="margin-top: 0px; margin-bottom: var(--s-prose-spacing); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Liberation Sans", sans-serif; font-size: 15px; clear: both; color: rgb(35, 38, 41); text-align: left; background-color: rgb(255, 255, 255);">
<br>
</p>
<p style="margin-top: 0px; margin-bottom: var(--s-prose-spacing); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Liberation Sans", sans-serif; font-size: 15px; clear: both; color: rgb(35, 38, 41); text-align: left; background-color: rgb(255, 255, 255);">
Best regards,</p>
<p style="margin-top: 0px; margin-bottom: var(--s-prose-spacing); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Liberation Sans", sans-serif; font-size: 15px; clear: both; color: rgb(35, 38, 41); text-align: left; background-color: rgb(255, 255, 255);">
Ivan</p>
<span><a href="https://1drv.ms/u/s!AgIaR65lMcbzgiw7OsY4WG5yVoUV" id="OLK_Beautified_075060a9-7fd3-b91a-9e0e-b56228f5fe87" class="OWAAutoLink _2cPx5pwLKDRsagEHmGU_G- C80f2oZdA4CmJyMoHtzV-" contenteditable="false" style="padding: 0px 1px; border-radius: 2px; user-select: all; background-color: rgb(244, 244, 244);"><img alt="" role="presentation" style="width: 16px; height: 16px; vertical-align: middle; padding: 1px 2px 2px 0px;" src="https://outlook-2.cdn.office.net/assets/mail/file-icon/png/zip_16x16.png">FFmpegDecoder.zip</a>
</span><br>
</div>
</body>
</html>