Skip to content

Commit

Permalink
Fix frame numbering in the CRC output
Browse files Browse the repository at this point in the history
Signed-off-by: Vassili Nikolaev (NVIDIA) <[email protected]>
  • Loading branch information
vasn1k authored and zlatinski committed Oct 3, 2024
1 parent 357a621 commit 17d7b2d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion common/libs/VkCodecUtils/VulkanVideoProcessor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
#include <string>
#include <vector>
#include <fstream>
#include <inttypes.h>

#include "VkCodecUtils/Helpers.h"
#include "VkCodecUtils/VulkanDeviceContext.h"
Expand Down Expand Up @@ -542,7 +543,7 @@ size_t VulkanVideoProcessor::OutputFrameToFile(VulkanDecodedFrame* pFrame)

// Output a crc for this frame.
if (m_settings.outputcrcPerFrame != 0) {
fprintf(m_settings.crcOutputFile, "CRC Frame[%i]:", pFrame->pictureIndex);
fprintf(m_settings.crcOutputFile, "CRC Frame[%" PRId64 "]:", pFrame->displayOrder);
size_t crcCount = m_settings.crcInitValue.size();
for (size_t i = 0; i < crcCount; i += 1) {
uint32_t frameCrc = m_settings.crcInitValue[i];
Expand Down

0 comments on commit 17d7b2d

Please sign in to comment.