- 01 Aug, 2016 14 commits
-
-
Burt P authored
Issue #5727: gain adjustment should only be applied if matching gain value from a valid packet in both channels. The existing functions process each channel separately, so it was not possible. * New versions of hdcd_process(), hdcd_scan(), hdcd_integrate() named hdcd_*_stereo() that process both channels together. * target_gain applied will be the last matching target_gain. * The old single channel functions remain as an option. They can be used by: -af hdcd=process_stereo=0. Signed-off-by: Burt P <pburt0@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-
James Almer authored
* commit 'bc7f4268': h264: drop tests whether the codec id is AV_CODEC_ID_H264 Conflicts: libavcodec/h264dec.c Merged-by: James Almer <jamrial@gmail.com>
-
James Almer authored
* commit '8281cd5c': h264_cabac: drop an always true condition Merged-by: James Almer <jamrial@gmail.com>
-
James Almer authored
* commit '5c2fb561': h264: add H264_ prefix to the NAL unit types Conflicts: libavcodec/h264_parse.c libavcodec/h264_parser.c libavcodec/h264_slice.c libavcodec/h264dec.c Merged-by: James Almer <jamrial@gmail.com>
-
Burt P authored
Signed-off-by: Burt P <pburt0@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-
Burt P authored
Used to attempt replication of some results from http://www.audiomisc.co.uk/HFN/HDCD/Examined.html May not be generally useful, defaults to off. Signed-off-by: Burt P <pburt0@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-
Burt P authored
* Moves the filter context member out of state and into HDCDContext * More useful information when an error is detected * Gives a location near where the error was detected Signed-off-by: Burt P <pburt0@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-
Burt P authored
Signed-off-by: Burt P <pburt0@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-
James Almer authored
* commit '1cf2f3d3': h264_sei: drop an unnecessary h264dec.h include Merged-by: James Almer <jamrial@gmail.com>
-
James Almer authored
* commit 'b24dafe1': lavc: drop unnecessary h264dec.h includes Merged-by: James Almer <jamrial@gmail.com>
-
James Almer authored
* commit '70b1dcef': h264: tighten the valid range for ref_frame_count Conflicts: libavcodec/h264_ps.c Merged-by: James Almer <jamrial@gmail.com>
-
James Almer authored
* commit 'f638b67e': h264: move the parameter set definitions to a new header file Conflicts: libavcodec/h264_parse.h libavcodec/h264_ps.c libavcodec/h264dec.h Merged-by: James Almer <jamrial@gmail.com>
-
Michael Niedermayer authored
Suggested-by: BBB Fixed-by: BBB Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-
Timothy Gu authored
-
- 31 Jul, 2016 6 commits
-
-
Timothy Gu authored
The header is not installed and the macro isn't used outside libavutil, so it is obviously privat to libavutil. Make the name reflect that.
-
Michael Bradshaw authored
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-
Burt P authored
The counter is now -1 if the code detect timer was never set, and 0 if it was set but never expired. Signed-off-by: Burt P <pburt0@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-
Burt P authored
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-
Timothy Gu authored
Silences a few warnings.
-
Timothy Gu authored
-
- 30 Jul, 2016 6 commits
-
-
Alexey Tourbin authored
The stereowiden filter uses a buffer, s->buffer[], and a pointer within the buffer, s->write, to implement inter-channel delays. The loop which applies the delayed samples turns out to be faulty. 109 for (n = 0; n < in->nb_samples; n++, src += 2, dst += 2) { 110 const float left = src[0], right = src[1]; 111 float *read = s->write + 2; 112 113 if (read > s->buffer + s->length) 114 read = s->buffer; 115 116 dst[0] = drymix * left - crossfeed * right - feedback * read[1]; 117 dst[1] = drymix * right - crossfeed * left - feedback * read[0]; 118 119 s->write[0] = left; 120 s->write[1] = right; 121 122 if (s->write == s->buffer + s->length) 123 s->write = s->buffer; 124 else 125 s->write += 2; 126 } For one, the buffer gets written past its end in lines 119-120, before the bound check is done in lines 122-123. This can be easily confirmed by valgrind. ==3544== Invalid read of size 4 ==3544== at 0x593B41: filter_frame (af_stereowiden.c:116) ==3544== Address 0xb1b03c4 is 4 bytes after a block of size 7,680 alloc'd ==3544== ==3544== Invalid read of size 4 ==3544== at 0x593B66: filter_frame (af_stereowiden.c:117) ==3544== Address 0xb1b03c0 is 0 bytes after a block of size 7,680 alloc'd ==3544== ==3544== Invalid write of size 4 ==3544== at 0x593B79: filter_frame (af_stereowiden.c:119) ==3544== Address 0xb1b03c0 is 0 bytes after a block of size 7,680 alloc'd ==3544== ==3544== Invalid write of size 4 ==3544== at 0x593B7D: filter_frame (af_stereowiden.c:120) ==3544== Address 0xb1b03c4 is 4 bytes after a block of size 7,680 alloc'd Also, using two separate pointers, s->write and read = s->write + 2, does not seem to be well thought out. To apply the delay of s->buffer[], it is enough to read the delayed samples at the current position within the buffer, and then to store new samples at the same current position. Thus the application of delayed samples can probably be best described with a single pointer s->cur. I also introduce a minor change to ensure that the size of s->buffer[] is always a multiple of 2. Since the delay parameter is a float, it is otherwise possible to trick the code into allocating off-by-one buffer.
-
Paul B Mahol authored
-
Timothy Gu authored
-
Timothy Gu authored
-
Timothy Gu authored
-
Timothy Gu authored
-
- 29 Jul, 2016 12 commits
-
-
Chris Cunningham authored
Also cleanup parens for the skip_to_timecode check. Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-
Lucas Cooper authored
Add an AVOption stats_version with a new header for V2 stats, which specifies the stats log version and lists the fields that will be present in the log (to ease parsing). The primary motivation is to facilitate the addition of optional fields to the log without breaking backwards compatibility, while making the logs easier to parse. Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-
Michael Niedermayer authored
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-
Clément Bœsch authored
* commit '4e2f6212': svq3: stop using H264Picture Merged-by: Clément Bœsch <u@pkh.me>
-
Clément Bœsch authored
* commit '251cbb44': h264: create a new header for common h264 definitions Merged-by: Clément Bœsch <u@pkh.me>
-
Clément Bœsch authored
* commit '9df889a5': h264: rename h264.[ch] to h264dec.[ch] Merged-by: Clément Bœsch <u@pkh.me>
-
Clément Bœsch authored
* commit 'f651c6a2': h264: factor out setting frame properties / side data Merged-by: Clément Bœsch <u@pkh.me>
-
Clément Bœsch authored
* commit '19446dc5': h264: drop unused NAL_FF_IGNORE Merged-by: Clément Bœsch <u@pkh.me>
-
Clément Bœsch authored
* commit 'bcd91f16': h264: move a per-field block from decode_slice_header() to field_start() Merged-by: Clément Bœsch <u@pkh.me>
-
Josh de Kock authored
Most systems have this, so it isn't really a problem to include it even if it's not used, but some do not have memory.h as it is non-standard. Since it's unused just remove it anyway.
-
Clément Bœsch authored
* commit '17e7c03e': h264: only allow ending a field/starting a new one before finish_setup() This commit is a noop. According to Michael, after 8385e171 this commit should not be necessary anymore. Merged-by: Clément Bœsch <u@pkh.me>
-
Stefano Sabatini authored
Set the stream_id to 0xbd (private_stream_id_1). Tools seem to assume that value, and this is consistent with MPEG TS specification (ITU-T H.222.0 section 2.12.3).
-
- 28 Jul, 2016 2 commits
-
-
Petru Rares Sincraian authored
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-
Petru Rares Sincraian authored
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-