libeplayer3: Standardize comparison order and improve code readability

Origin commit data
------------------
Commit: b7d7f97ee4
Author: BPanther <bpanther_ts@hotmail.com>
Date: 2024-03-21 (Thu, 21 Mar 2024)

Origin message was:
------------------
small fix

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
BPanther
2024-03-24 22:23:52 +01:00
committed by Thilo Graf
parent 551e212a25
commit 73536563da
12 changed files with 65 additions and 69 deletions

View File

@@ -74,7 +74,7 @@ static AVCodecContext *get_codecpar(AVStream *stream)
static AVRational get_frame_rate(AVStream *stream)
{
AVRational rateRational = stream->avg_frame_rate;
if (0 == rateRational.den)
if (rateRational.den == 0)
{
rateRational = stream->r_frame_rate;
}