golomb: Add a get_se_golomb_long

Useful in libavformat mostly.
hevc: Use get_se_golomb_long

Do not use inline functions that refer to tables present in other
libraries.
configure: Use the right pkgconf file for openjpeg

The current release of version 1 uses libopenjpeg1.
Replace an incorrect av_free() in movenc.c with av_freep().
Define ff_log2_run[] in libavcodec/internal.h.

This avoids defining the array with different sizes in
different source files.
lavf: simplify ff_hevc_annexb2mp4_buf

Use ff_hevc_annexb2mp4 instead of duplicating
its functionality, and update the documentation
to match the new behavior.
lavf: always use av_free

Signed-off-by: Tim Walker <tdskywalker@gmail.com>
Merge commit '5eacbb53289570834f9a1acb15fd406ea224eef6'

* commit '5eacbb53289570834f9a1acb15fd406ea224eef6':
  golomb: Add a get_se_golomb_long

Merged-by: Michael Niedermayer <michaelni@gmx.at>
Merge commit 'ee17be3fdd37f63f4b77676820e387858908b0f4'

* commit 'ee17be3fdd37f63f4b77676820e387858908b0f4':
  hevc: Use get_se_golomb_long

Merged-by: Michael Niedermayer <michaelni@gmx.at>
Merge commit '4a8562394b685e83ae4a38a93eef43625755a231'

* commit '4a8562394b685e83ae4a38a93eef43625755a231':
  configure: Use the right pkgconf file for openjpeg

Conflicts:
	configure

No change as the incorrect code wasnt in ffmpegs configure

Merged-by: Michael Niedermayer <michaelni@gmx.at>
Merge commit '34bbc81de8a49fbddb92b76dc733f40890480b2b'

* commit '34bbc81de8a49fbddb92b76dc733f40890480b2b':
  lavf: simplify ff_hevc_annexb2mp4_buf

Conflicts:
	libavformat/hevc.c
	libavformat/hevc.h

Merged-by: Michael Niedermayer <michaelni@gmx.at>
configure: miscellaneous cosmetics

Sort lists of components. Add some whitespace where it helps readability.
Consistently use double instead of single quotes around component lists.
Merge commit '77e9123fe5d64b0960158de6e1713d3c6c7878a7'

* commit '77e9123fe5d64b0960158de6e1713d3c6c7878a7':
  lavf: always use av_free

See: 88c8e4afeaf74ee58b67145e0331e229d8050968
Merged-by: Michael Niedermayer <michaelni@gmx.at>
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  configure: miscellaneous cosmetics

Conflicts:
	configure

Merged-by: Michael Niedermayer <michaelni@gmx.at>
Merge remote-tracking branch 'cehoyos/master'

* cehoyos/master:
  Define ff_log2_run[] in libavcodec/internal.h.
  Replace an incorrect av_free() in movenc.c with av_freep().

Merged-by: Michael Niedermayer <michaelni@gmx.at>
doc/APIchanges: fill in dates

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
configure: make it possible to disable xlib dependancy

The unconditional dependancy was added in 7671dd7cd7d51bbd637cc46d8f104a141bc355ea

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
avcodec/mjpegdec: support adob transform 2

Fixes Ticket3426

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Decode png images without iend chunk.

Fixes ticket #3357.
lavf: more correct printf format specifiers