AVC: Added two decode error handlings. (#280)

* * rocDecode/AVC: Added two decode error handlings.
 - Exit with error when the stream is coded field pictures.
 - Exit with error when the stream has multiple slice groups. VCN HW does not support it.

* * rocDecode/AVC: Added a missing error return from the last commit.

---------

Co-authored-by: Aryan Salmanpour <aryan.salmanpour@amd.com>

[ROCm/rocdecode commit: 5c18444bcc]
This commit is contained in:
jeffqjiangNew
2024-03-07 21:35:19 -05:00
committed by GitHub
parent 9b71383de8
commit 6ef0d46f4a
2 changed files with 19 additions and 7 deletions
+2 -2
View File
@@ -172,9 +172,9 @@ protected:
/*! \brief Function to parse Picture Parameter Set
* \param [in] p_stream A pointer of <tt>uint8_t</tt> for the input stream to be parsed
* \param [in] size Size of the input stream
* \return No return value
* \return <tt>ParserResult</tt>
*/
void ParsePps(uint8_t *p_stream, size_t stream_size_in_byte);
ParserResult ParsePps(uint8_t *p_stream, size_t stream_size_in_byte);
/*! \brief Function to parse slice header
* \param p_stream The pointer to the input bit stream