Skip to content

Commit

Permalink
[Decode] Add log for incomplete bitstream in completeframe mode (#6287)
Browse files Browse the repository at this point in the history
Give a hint for completeframe mode

Co-authored-by: XuanJessica <[email protected]>
  • Loading branch information
gfxVPLsdm and XuanJessica authored Dec 15, 2023
1 parent c3f0669 commit ae684e8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion _studio/shared/umc/codec/h264_dec/src/umc_h264_nal_spl.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2003-2019 Intel Corporation
// Copyright (c) 2003-2023 Intel Corporation
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
Expand Down Expand Up @@ -26,6 +26,7 @@
#include <vector>
#include "umc_structures.h"
#include "umc_h264_nal_spl.h"
#include "mfx_utils_logging.h"

namespace UMC
{
Expand Down Expand Up @@ -209,6 +210,10 @@ class StartCodeIterator : public StartCodeIteratorBase
startCodeSize1 = 0;
source += size;
size = 0;
if (!flags) // completeframe mode
{
MFX_LOG_ERROR("Incomplete bitstream will be sent to driver in completeframe mode\n");
}
}

if (iCodeNext == -1)
Expand Down

0 comments on commit ae684e8

Please sign in to comment.