mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
matroskamux: fix PAR fraction sanity check
It was checking par_num twice, and never par_denum. Coverity 1139634
This commit is contained in:
parent
25fa88f8aa
commit
54c5710adb
1 changed files with 1 additions and 1 deletions
|
@ -1416,7 +1416,7 @@ theora_streamheader_to_codecdata (const GValue * streamheader,
|
|||
hdr += 4 + 4;
|
||||
par_num = GST_READ_UINT32_BE (hdr) >> 8;
|
||||
par_denom = GST_READ_UINT32_BE (hdr + 3) >> 8;
|
||||
if (par_num > 0 && par_num > 0) {
|
||||
if (par_num > 0 && par_denom > 0) {
|
||||
if (par_num > par_denom) {
|
||||
videocontext->display_width =
|
||||
videocontext->pixel_width * par_num / par_denom;
|
||||
|
|
Loading…
Reference in a new issue