[FFmpeg-devel] [PATCH 1/4] avcodec/h264_sei: refactor parsing User Data Registered ITU-T T35 SEI messages
Jan Ekström
jeebjp at gmail.com
Fri Dec 18 17:51:53 EET 2020
On Tue, Dec 8, 2020 at 9:44 PM James Almer <jamrial at gmail.com> wrote:
>
> Signed-off-by: James Almer <jamrial at gmail.com>
> ---
> libavcodec/h264_sei.c | 31 ++++++++++++++++++++++---------
> 1 file changed, 22 insertions(+), 9 deletions(-)
Set generally OK, just some minor things:
- probably AVERROR(EINVAL) usage should be AVERROR_INVALIDDATA ?
- Unrelated to this specific set (but just visible in the context of
the change), but I see that we seem to have generally not handled the
case of country_code == 0xFF && size == 7 (or 3). I think while we're
refactoring this code we could just add a "if (size < 1) return
AVERROR_INVALIDDATA;" into that country_code == 0xFF check? Should
make it handle that specific case now.
Jan
More information about the ffmpeg-devel
mailing list