summaryrefslogtreecommitdiff
path: root/libavcodec/aac_ac3_parser.h
diff options
context:
space:
mode:
authorAndriy Gelman <andriy.gelman@gmail.com>2020-10-14 00:38:22 -0400
committerAndriy Gelman <andriy.gelman@gmail.com>2020-10-15 22:27:37 -0400
commitd4c46dc32856bd9c7c7ab29ee727676c7855fa1c (patch)
tree5f1223eebc2a6a71f7b448460b0d95d6f710ed99 /libavcodec/aac_ac3_parser.h
parent8e58db7348b79b2f5d460632932e4f9a8e6312ed (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 <andriy.gelman@gmail.com>
Diffstat (limited to 'libavcodec/aac_ac3_parser.h')
0 files changed, 0 insertions, 0 deletions