[FFmpeg-devel] lavf/matroska*: add support for signed integers
Jan Gerber
j at v2v.cc
Fri Nov 15 11:28:21 CET 2013
On 11/14/2013 10:53 PM, Michael Niedermayer wrote:
>
> if i try the example from http://matroska.org/technical/specs/index.html
> 0xFE & 0x80
> negative = 1
> 0x7E
>
> if(negative)
> num = 0 - 0x7E
>
> this does nt seem to reach the expected -2 which is 0xFE
>
> but maybe iam missing something
>
good catch, fixed version attached.
---
libavformat/matroskadec.c | 27 +++++++++++++++++++++++++++
libavformat/matroskaenc.c | 21 +++++++++++++++++++++
2 files changed, 48 insertions(+)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-lavf-matroska-add-support-for-signed-integers.patch
Type: text/x-diff
Size: 2340 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20131115/4e5affaf/attachment.bin>
More information about the ffmpeg-devel
mailing list