diff options
author | James Almer <jamrial@gmail.com> | 2019-04-15 23:50:01 +0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2019-04-17 02:32:43 +0300 |
commit | 9bf520d04d6137d0772e019356356614bbf7ca82 (patch) | |
tree | bccd1dd0b4241a24a13b698ae611e1fb6bdc27b2 /libavcodec/cbs_h264_syntax_template.c | |
parent | 3dc6adf326c8cd6c7fc830ccb8def8772835c676 (diff) |
avcodec/cbs_h264: fix storage type for time_offset in Pic Timing SEI
The spec defines it as a signed value.
Reviewed-by: Mark Thompson <sw@jkqxz.net>
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/cbs_h264_syntax_template.c')
-rw-r--r-- | libavcodec/cbs_h264_syntax_template.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libavcodec/cbs_h264_syntax_template.c b/libavcodec/cbs_h264_syntax_template.c index 4da4c5da67..07b4cddb5e 100644 --- a/libavcodec/cbs_h264_syntax_template.c +++ b/libavcodec/cbs_h264_syntax_template.c @@ -592,8 +592,9 @@ static int FUNC(sei_pic_timestamp)(CodedBitstreamContext *ctx, RWContext *rw, time_offset_length = 24; if (time_offset_length > 0) - u(time_offset_length, time_offset, - 0, MAX_UINT_BITS(time_offset_length)); + i(time_offset_length, time_offset, + MIN_INT_BITS(time_offset_length), + MAX_INT_BITS(time_offset_length)); else infer(time_offset, 0); |