Skip to content

Commit

Permalink
libhb: do not set a wrong bitrate for truehd tracks and maybe more if…
Browse files Browse the repository at this point in the history
… there is no actual value

Fix HandBrake#2901.
  • Loading branch information
galad87 committed Aug 16, 2024
1 parent 175361f commit 9847a93
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions libhb/decavcodec.c
Original file line number Diff line number Diff line change
Expand Up @@ -887,6 +887,10 @@ static int decavcodecaBSInfo( hb_work_object_t *w, const hb_buffer_t *buf,
}
else
{
// AVCodecContext bit_rate default is 128 Kb
// unset it to avoid getting a wrong value if
// nothing sets it to the actual streams value
context->bit_rate = 1;
parser = av_parser_init(codec->id);
}

Expand Down

0 comments on commit 9847a93

Please sign in to comment.