* FFMPEG SW decode: Replaced the assert against 0 display width with an error check, to avoid abortion in a query call. (#596)
* * FFMPEG SW decode: Replaced the assert against 0 display width with an error check, to avoid abortion in a query call.
* * FFMPEG SW decode: Correction to the previous editing error.
---------
Co-authored-by: essamROCm <77812857+essamROCm@users.noreply.github.com>
[ROCm/rocdecode commit: 0f89c9c17c]
Este commit está contenido en:
@@ -120,7 +120,7 @@ class FFMpegVideoDecoder: public RocVideoDecoder {
|
||||
/**
|
||||
* @brief This function is used to get the current frame size based on pixel format.
|
||||
*/
|
||||
virtual int GetFrameSize() { assert(disp_width_); return ((disp_width_ * disp_height_) + ((chroma_height_ * chroma_width_) * num_chroma_planes_)) * byte_per_pixel_; }
|
||||
virtual int GetFrameSize() {CHECK_ZERO("Display width", disp_width_); return ((disp_width_ * disp_height_) + ((chroma_height_ * chroma_width_) * num_chroma_planes_)) * byte_per_pixel_; }
|
||||
|
||||
private:
|
||||
/**
|
||||
|
||||
Referencia en una nueva incidencia
Block a user