summaryrefslogtreecommitdiffstats
path: root/libavutil/avstring.h
diff options
context:
space:
mode:
authorAndriy Gelman <[email protected]>2020-10-14 00:38:22 -0400
committerAndreas Rheinhardt <[email protected]>2021-02-27 07:20:58 +0100
commit1eb8f6885eb858a444164bbf97db3ff5401e6a86 (patch)
treed46405397ab324ad19e305525137f8fa189e35eb /libavutil/avstring.h
parent51faa4bd60f0a548c6a4613bf30d645b8ff55e7c (diff)
avcodec/movtextenc: fix writing to bytestream on BE arches
Fixes fate-binsub-movtextenc on PPC64 Currently tags are written in reverse order on BE arches. This is fixed by using MKBETAG() and AV_RB32() to be arch agnostics. Also s->font_count is of type int. On BE arches with 32bit int, count = AV_RB16(&s->font_count) will read two most significant bytes instead of the least significant bytes. This is fixed by assigning s->font_count to count first. The final change is modifying the type of len. On BE arches the most significant byte of the int was written instead of the least significant byte. Signed-off-by: Andriy Gelman <[email protected]> (cherry picked from commit d4c46dc32856bd9c7c7ab29ee727676c7855fa1c) Signed-off-by: Andreas Rheinhardt <[email protected]>
Diffstat (limited to 'libavutil/avstring.h')
0 files changed, 0 insertions, 0 deletions