mirror of
https://github.com/samsonjs/media.git
synced 2026-04-18 13:25:47 +00:00
H265Reader: initialize correct Format.height for interlaced video
This commit is contained in:
parent
456622a275
commit
377a3250f0
1 changed files with 17 additions and 0 deletions
|
|
@ -334,6 +334,23 @@ public final class H265Reader implements ElementaryStreamReader {
|
|||
Log.w(TAG, "Unexpected aspect_ratio_idc value: " + aspectRatioIdc);
|
||||
}
|
||||
}
|
||||
if (bitArray.readBit()) // overscan_info_present_flag
|
||||
bitArray.skipBit();
|
||||
if (bitArray.readBit()) { // video_signal_type_present_flag
|
||||
bitArray.skipBits(4);
|
||||
if (bitArray.readBit()) // colour_description_present_flag
|
||||
bitArray.skipBits(24);
|
||||
}
|
||||
if (bitArray.readBit()) { // chroma_loc_info_present_flag
|
||||
bitArray.readUnsignedExpGolombCodedInt();
|
||||
bitArray.readUnsignedExpGolombCodedInt();
|
||||
}
|
||||
bitArray.skipBit(); // neutral_chroma_indication_flag
|
||||
if (bitArray.readBit()) { // field_seq_flag
|
||||
// field_seq_flag equal to 1 indicates that the CVS conveys pictures that represent fields,
|
||||
// which means that picture height must be multiplied by 2 to get frame height
|
||||
picHeightInLumaSamples *= 2;
|
||||
}
|
||||
}
|
||||
|
||||
return new Format.Builder()
|
||||
|
|
|
|||
Loading…
Reference in a new issue