rtpenc_chain: Don't copy the time base to the source stream by default

Only copy it manually in the muxers where it makes sense (rtspenc,
sapenc). Don't touch the original AVStream in movenchint, where
the original AVStream should be kept untouched.

This fixes the normal tracks in RTP hinted files after
abb810db - the hint tracks were ok while the normal media tracks
were broken, noticed by Michael Niedermayer.

This reverts abb810db but achieves the same effect for the other
muxers.

Signed-off-by: Martin Storsjö <martin@martin.st>
Merge commit 'f797b134cad4d248b1c8955659997980d0668bc3'

* commit 'f797b134cad4d248b1c8955659997980d0668bc3':
  rtpenc_chain: Don't copy the time base to the source stream by default

See: 1fe40e1b0538a8eb8425123c47775b5d141ae084
Merged-by: Michael Niedermayer <michaelni@gmx.at>
Revert "avformat/movenchint: Fix movhinting with ff_rtp_chain_mux_open() from abb810db036628e11a5171134ebe320b187ee6d6"

This has become unneeded due to f797b134cad4d248b1c8955659997980d0668bc3

This reverts commit 1fe40e1b0538a8eb8425123c47775b5d141ae084.
libavformat: output cues for each subtitle block in MKV muxer

Signed-off-by: John Peebles <johnpeeb@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Use rc_max_rate in av_find_best_stream() if bitrate == 0.

Fixes ticket #2042.
lavc/utvideoenc: Enable frame-threading.
lavc/tiffenc: Enable frame-threading.
lavc/ljpegenc: Enable frame-threading.
lavc/lclenc: Enable frame-threading.
lavc/jpeglsenc: Enable frame-threading.
Fix compilation with --disable-everything --enable-demuxer=matroska.

Fixes ticket #3693.
Read mov files where the moov atom is hidden within a free atom.

Fixes ticket #1551 / issue 2226.
avcodec/snow: fix 1 pixel block sizes

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
avutil/frame: frame_copy_video: support copying from a smaller to a larger frame

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
avcodec/asvenc: fix encoding dimensions %16 != 0

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

* cehoyos/master:
  Read mov files where the moov atom is hidden within a free atom.

Merged-by: Michael Niedermayer <michaelni@gmx.at>
lavc/dsputil: add missing vsad8 and vsse8 functions

the mpeg encoder would try to use them if vsad or vsse were selected for frame_skip_cmp
and frame_skip_threshold or frame_skip_factor were set to values != 0

example: "ffmpeg -i INPUT -c:v mpeg2video -skipcmp vsad -skip_threshold 1 -f null -"

Signed-off-by: James Almer <jamrial@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Support raw dvdsub palette as stored on normal dvd's

This is how the palette is stored on dvd's. Currently
only xbmc passes the palette information to libavcodec
this way.
Check return value of avio_seek and avoid modifying state if it fails

The code still modifies state if the timestamp is not found. Not
sure exactly how to avoid that.
asf hacks