x86: h264dsp: Fix link failure with optimizations disabled

With optimzations disabled compilers have trouble doing dead code
elimination on 'if (foo && 0)' expressions, while 'if (0 && foo)'
still works, so use the latter to avoid problems.

Bug-Id: 707
dv: Replace a magic number by sizeof()
hevc: Allow out of bound values for num_reorder_pics

This fixes decoding for a sample that cannot be shared

Signed-off-by: Anton Khirnov <anton@khirnov.net>
hevc: remove unused array min_cb_addr_zs

Signed-off-by: Anton Khirnov <anton@khirnov.net>
lavc: do not allocate edges in the default get_buffer2()
dump_stream: print the timebase as is, do not reduce it

It makes more sense to print the timebase exactly as it is set. Also,
this avoids a divide by zero when av_dump_format() is called on a format
context before writing the header.
output example: use the new AVFrame API for allocating the video frame
output example: use a struct to bundle the video stream variables together
output example: set output channel layout
output example: use the new AVFrame API to allocate audio frames
output example: use OutputStream for audio streams as well
output example: allocate the audio frame only once
output example: use a macro instead of a static variable
output example: store the scaling context in the stream context
output example: rewrite encoding logic

Properly generate pts for the frames sent to the encoder, avoid
using private and deprecated AVStream.pts.
output example: free the muxing format context properly
indeo2: rename stride to pitch for consistency with other Indeo decoders
indeo4: B-frames decoding

Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
fate: Add dependencies for dct/fft/mdct/rdft tests
dsputil: Move MMX/SSE2-optimized IDCT bits to the x86 subdirectory