Workaround in detecting frame height for channels with wrong crop parameters

This commit is contained in:
Klaus Schmidinger 2024-01-23 19:33:45 +01:00
parent fe97a38e77
commit a2591d6e98
3 changed files with 7 additions and 2 deletions

View File

@ -2470,6 +2470,7 @@ Christoph Haubrich <christoph1.haubrich@arcor.de>
for reporting a bug in generating the index file in the cutter
for adding the frame width, height, scan type and aspect ratio of a recording to the 'F'
tag of the 'info' file
for adding a workaround in detecting frame height for channels with wrong crop parameters
Pekka Mauno <pekka.mauno@iki.fi>
for fixing cSchedule::GetFollowingEvent() in case there is currently no present

View File

@ -9863,7 +9863,7 @@ Video Disk Recorder Revision History
- The recording info of the default skins now shows the frame parameters of the
recording at the end of the description (if such information is available).
2024-01-22:
2024-01-23:
- Changed installing config files to handle potentially broken 'cp -n'.
- Fixed height calculation in progress display (thanks to Matthias Senzel).
@ -9882,3 +9882,5 @@ Video Disk Recorder Revision History
- Added the total number of errors when logging new recording errors.
- Added '/' to the list of fuzzy characters for pattern timers.
- Fixed handling primary device on headless systems (thanks to Markus Ehrnsperger).
- Workaround in detecting frame height for channels with wrong crop parameters
(thanks to Christoph Haubrich).

View File

@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
* $Id: remux.c 5.6 2023/12/28 21:22:47 kls Exp $
* $Id: remux.c 5.7 2024/01/23 19:33:45 kls Exp $
*/
#include "remux.h"
@ -1587,6 +1587,8 @@ void cH264Parser::ParseSequenceParameterSet(void)
}
frame_Width -= CropUnitX * (frame_crop_left_offset + frame_crop_right_offset);
frame_Height -= CropUnitY * (frame_crop_top_offset + frame_crop_bottom_offset);
if (frame_Height > 1080 && frame_Height <= 1090) // workaround for channels with wrong crop parameters
frame_Height = 1080;
}
frameWidth = frame_Width;
frameHeight = frame_Height;