lavf/wavdec: Fix seeking in files with unaligned offsets

A file with a prepended ID3 tag of an uneven length was found
in the wild.

Check if the wav data starts at an uneven offset and use that
information to correct the seeking calculation in wav_seek_tag,
which used to only seek to even byte positions.

Regression since ac87eaf856e0fb51917266b899bb15d19b907baf

Signed-off-by: Alexander Strasser <eclipse7@gmx.net>
avcodec/gif: move BITSTREAM_WRITER_LE up

This prevents issues in case any header #includes put_bits.h

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
avcodec/lzwenc: Add 1 additional bit of padding for gif

This fixes issues with gimp reading animated gifs

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
avcodec/gif: use the whole allocated buffer

Fixes some gif encoding failures

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
avcodec/lzwenc: change asserts to av_asserts

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>