vp8: Fix pthread_cond and pthread_mutex leaks

CC: libav-stable@libav.org

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
ffplay: fix early frame dropped pts serial

Fixes early frame drop which was kind of broken since
26c208cf0ff59efd7786528884a64d35fc42e9bf.

Signed-off-by: Marton Balint <cus@passwd.hu>
ffplay: always queue attachment pictures after flushing the video packet queue

Requeue them after seeking and also after opening a video stream. Also don't
fill the video queue in case of an attached picture video stream since there
will be no more than one packet from that stream.

Signed-off-by: Marton Balint <cus@passwd.hu>
doc/platform: Remove part about dllimport

Only deprecated things need this at all anymore, as we have functions
to access them or they are no longer needed.

The document should not encourage use of deprecated APIs.

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
h264: Move slice_table clean out of frame_start

Fixes inconsistency ultimately leading to an out of array read

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
avutil: add av_buffer_get_ref_count()

This function is quite usefull for debuging

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
h264_refs: assert that long ref fields have not been inserted multiple times

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
h264_refs: assert that the references are not deallocated

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
h264: move the default_ref_list_done check down after its inputs have been written

Fixes out of array read

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
h264: move last_slice_type reset into decode_slice_header

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
h264_direct: assert the validity of the spatial ref

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Merge remote-tracking branch 'cus/stable'

* cus/stable:
  ffplay: always queue attachment pictures after flushing the video packet queue
  ffplay: fix early frame dropped pts serial

Merged-by: Michael Niedermayer <michaelni@gmx.at>
h264_refs: check for multiple mismatching long term ref assignments

Fixes failure of the assert added a few hours ago.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Use PIX_FMT_BGR24 for the AviSynth demuxer, instead of RGB24.

Partial fix for ticket #2412 in that using PIX_FMT_BGR24 fixes the
swapped channels issue when using scripts serving RGB24.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
decimate: check for avctx ptr before closing.

Fixes a crash init failed before setting avctx.
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  doc/platform: Remove part about dllimport
  vp8: Fix pthread_cond and pthread_mutex leaks

Conflicts:
	doc/platform.texi

Merged-by: Michael Niedermayer <michaelni@gmx.at>
fate/filter: use aperms to test volume filter.
lavfi/volume: use copy props helper instead of incomplete manual code.
lavfi/volume: use designated initializers for the sample_fmts declaration.
doc/filters: fix width/height typo in crop filter.

Signed-off-by: Clément Bœsch <ubitux@gmail.com>