frame: fix the error path in av_frame_copy_props()

First free metadata, then the side data it is contained in.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
matroskaenc: base DefaultDuration on the framerate, not the codec timebase

This results in DefaultDuration not being written when the framerate is
not known, but as this field is purely informative, this should not
break any sane demuxers.
movenc: write avg_frame_rate as the framerate, not the codec timebase
flvenc: only write the framerate tag based on avg_frame_rate

Do not fall back on the codec timebase, since that can be anything for
VFR video.
matroskaenc: set the stream timebase earlier

Fixes calculating the ts offset for audio codecs with delay.
aarch64: Use the correct syntax for relocations

This fixes building in PIC mode with gas. The examples in the gas
manual showed using a # here even though gas itself actually didn't
support that syntax (and the gas test suite only tests it without
the extra hash sign).

CC: libav-stable@libav.org
Signed-off-by: Martin Storsjö <martin@martin.st>
svq1enc: Rename SVQ1Context to SVQ1EncContext

This allows making it visible without name clashes.
dsputil: Move SVQ1 encoding specific bits into svq1enc
dsputil: Move ff_alternate_*_scan tables to mpegvideo
dsputil: Move mspel_pixels_tab to the only place it is used
dsputil: Move APE-specific bits into apedsp
dsputil: Move Bink-specific add_pixels8 to binkdsp
dsputil: Split off quarterpel bits into their own context