diff --git a/projects/rocdecode/utils/ffmpegvideodecode/ffmpeg_video_dec.h b/projects/rocdecode/utils/ffmpegvideodecode/ffmpeg_video_dec.h index 8a0e466be8..b524d3fdb0 100644 --- a/projects/rocdecode/utils/ffmpegvideodecode/ffmpeg_video_dec.h +++ b/projects/rocdecode/utils/ffmpegvideodecode/ffmpeg_video_dec.h @@ -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: /**