mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-03 05:10:03 +02:00
avcodec/h264_ps: Don't error out on unknown aspect ratio
Values 17..254 are actually only reserved and not invalid. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
a5bba606a0
commit
8d481b0234
@ -145,8 +145,8 @@ static inline int decode_vui_parameters(GetBitContext *gb, void *logctx,
|
||||
} else if (aspect_ratio_idc < FF_ARRAY_ELEMS(ff_h264_pixel_aspect)) {
|
||||
sps->sar = ff_h264_pixel_aspect[aspect_ratio_idc];
|
||||
} else {
|
||||
av_log(logctx, AV_LOG_ERROR, "illegal aspect ratio\n");
|
||||
return AVERROR_INVALIDDATA;
|
||||
av_log(logctx, AV_LOG_WARNING, "Unknown SAR index: %u.\n",
|
||||
aspect_ratio_idc);
|
||||
}
|
||||
} else {
|
||||
sps->sar.num =
|
||||
|
Loading…
Reference in New Issue
Block a user