mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-28 11:55:39 +00:00
codecparsers: Actually store mpeg video bitrate value
And use the extension also (higher 12 bits)
This commit is contained in:
parent
ac4efd2914
commit
f7893fb63e
1 changed files with 2 additions and 1 deletions
|
@ -304,7 +304,7 @@ gst_mpeg_video_parse_sequence_header (GstMpegVideoSequenceHdr * seqhdr,
|
|||
seqhdr->bitrate = 0;
|
||||
} else {
|
||||
/* Value in header is in units of 400 bps */
|
||||
seqhdr->bitrate *= 400;
|
||||
seqhdr->bitrate = seqhdr->bitrate_value * 400;
|
||||
}
|
||||
|
||||
READ_UINT8 (&br, bits, 1);
|
||||
|
@ -486,6 +486,7 @@ gst_mpeg_video_finalise_mpeg2_sequence_header (GstMpegVideoSequenceHdr * seqhdr,
|
|||
/* Extend width and height to 14 bits by adding the extension bits */
|
||||
seqhdr->width |= (seqext->horiz_size_ext << 12);
|
||||
seqhdr->height |= (seqext->vert_size_ext << 12);
|
||||
seqhdr->bitrate += (seqext->bitrate_ext << 18) * 400;
|
||||
}
|
||||
|
||||
w = seqhdr->width;
|
||||
|
|
Loading…
Reference in a new issue