[FFmpeg-cvslog] Update for 3.0.12
ffmpeg | branch: release/3.0 | Michael Niedermayer | Tue Oct 23 02:15:08 2018 +0200| [1dbf2bc7a958684df11c94ba65d1d655e1a0cb61] | committer: Michael Niedermayer Update for 3.0.12 Signed-off-by: Michael Niedermayer > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=1dbf2bc7a958684df11c94ba65d1d655e1a0cb61 --- Changelog| 133 +++ RELEASE | 2 +- doc/Doxyfile | 2 +- 3 files changed, 135 insertions(+), 2 deletions(-) diff --git a/Changelog b/Changelog index a3bf744044..12b3cd9b98 100644 --- a/Changelog +++ b/Changelog @@ -1,6 +1,139 @@ Entries are sorted chronologically from oldest to youngest within each release, releases are sorted from youngest to oldest. +version 3.0.12 +- avcodec/jpeg2000dec: Fix off by 1 error in JPEG2000_PGOD_CPRL handling +- avcodec/mpeg4videodec: Fix typo in sprite delta check +- avcodec/h264_cavlc: Check mb_skip_run +- avcodec/ra144: Fix integer overflow in add_wav() +- avformat/utils: Never store negative values in last_IP_duration +- avformat/utils: Fix integer overflow in discontinuity check +- avcodec/unary: Improve get_unary() docs +- avcodec/dvdsubdec: Sanity check len in decode_rle() +- avcodec/mpeg4videodec: Fix undefined shift in get_amv() +- avcodec/zmbv: Check that the decompressed data size is correct +- avcodec/zmbv: Update decomp_len in raw frames +- avcodec/shorten: Fix bitstream end check in read_header() +- avcodec/dvdsubdec: Avoid branch in decode_run_8bit() +- avcodec/h264_refs: Document last if() in ff_h264_execute_ref_pic_marking() +- avcodec/ra144: Fix undefined integer overflow in add_wav() +- avcodec/hq_hqa: Check remaining input bits in hqa_decode_mb() +- avcodec/vb: Check for end of bytestream before reading blocktype +- avcodec/snowdec: Fix integer overflow with motion vector residual +- avformat/nsvdec: Do not parse multiple NSVf +- avformat/mlvdec: read_string() received unsigned size, make the argument unsigned +- avformat/rmdec: Fix EOF check in the stream loop in ivr_read_header() +- avcodec/shorten: Fix integer overflow in residual/LPC combination +- avcodec/shorten: Check verbatim length +- avcodec/mpegaudio_parser: Initialize poutbuf* +- avcodec/aacpsdsp_template: Fix integer overflow in ps_stereo_interpolate_c() +- avcodec/qtrle: Check remaining bytestream in qtrle_decode_XYbpp() +- avcodec/diracdec: Check bytes count in else branch in decode_lowdelay() too +- avcodec/diracdec: Change frame_number to 64bit as its a 32bit from the bitstream and we also have a -1 special case +- avcodec/dirac_dwt_template: Fix several integer overflows in horizontal_compose_daub97i() +- avcodec/diracdec: Prevent integer overflow in intermediate in global_mv() +- swresample/swresample: Fix input channel count in resample_first computation +- avutil/pixfmt: Document chroma plane size for odd resolutions +- avcodec/dvdsub_parser: Allocate input padding +- avcodec/dvdsub_parser: Init output buf/size +- avcodec/imgconvert: fix possible null pointer dereference +- avcodec/dirac_dwt_template: Fix signedness regression in interleave() +- swresample/arm: rename labels to fix xcode build error +- avformat/utils: fix mixed declarations and code +- libwebpenc_animencoder: add missing braces to struct initialization +- avformat/movenc: Check input sample count +- avcodec/mjpegdec: Check for odd progressive RGB +- avformat/movenc: Check that frame_types other than EAC3_FRAME_TYPE_INDEPENDENT have a supported substream id +- avformat/mms: Add missing chunksize check +- avformat/pva: Check for EOF before retrying in read_part_of_packet() +- avformat/rmdec: Do not pass mime type in rm_read_multi() to ff_rm_read_mdpr_codecdata() +- avcodec/indeo4: Check for end of bitstream in decode_mb_info() +- avcodec/shorten: Fix undefined addition in shorten_decode_frame() +- avcodec/jpeg2000dec: Fixes invalid shifts in jpeg2000_decode_packets_po_iteration() +- avcodec/jpeg2000dec: Check that there are enough bytes for all tiles +- avcodec/escape124: Fix spelling errors in comment +- avcodec/ra144: Fix integer overflow in ff_eval_refl() +- avcodec/cscd: Check output buffer size for lzo. +- avcodec/escape124: Check buf_size against num_superblocks +- avcodec/mjpegdec: Check for end of bitstream in ljpeg_decode_rgb_scan() +- avcodec/aacdec_fixed: Fix undefined integer overflow in apply_independent_coupling_fixed() +- avcodec/dirac_dwt_template: Fix undefined behavior in interleave() +- avutil/common: Fix undefined behavior in av_clip_uintp2_c() +- fftools/ffmpeg: Fallback to duration if sample rate is unavailable +- avformat/mov: Only set pkt->duration to non negative values +- avcodec/h264_mc_template: Only prefetch motion if the list is used. +- avcodec/xwddec: Use ff_set_dimensions() +- avcodec/wavpack: Fix overflow in adding tail +- avcodec/shorten: Fix multiple integer overflows +- avcodec/shorten: Sanity check nmeans +- avcodec/mjpegdec: Fix integer overflow in ljpeg_decode_rgb_scan() +- avcode
[FFmpeg-cvslog] New commits on branch release/3.0
URL: http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=dd5232c838470fcbd46e9a1fa7f64af8e948ce92 Author: Michael Niedermayer Date: Sat Oct 20 22:35:37 2018 +0200 avcodec/jpeg2000dec: Fix off by 1 error in JPEG2000_PGOD_CPRL handling Fixes: assertion failure Fixes: 10785/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_JPEG2000_fuzzer-5672160496975872 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer (cherry picked from commit 305e523105f6f59e7572050f19edc9f4671c036c) Signed-off-by: Michael Niedermayer URL: http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=9c1bb7e8debdbcd8f7786c381e1f90bec9f74a45 Author: Michael Niedermayer Date: Thu Oct 18 01:19:36 2018 +0200 avcodec/mpeg4videodec: Fix typo in sprite delta check Fixes: Integer overflow Fixes: 10890/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_MPEG4_fuzzer-5636062181851136 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer (cherry picked from commit b737317a8813e671c00b8ac7023c47e48ffeb1c8) Signed-off-by: Michael Niedermayer URL: http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f9cfdf2baefd89fd6ef55afb0832aa1e2155a3b9 Author: Michael Niedermayer Date: Thu Oct 4 03:13:41 2018 +0200 avcodec/h264_cavlc: Check mb_skip_run Fixes: 10300/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_H264_fuzzer-6292205497483264 Fixes: signed integer overflow: -2147483648 - 1 cannot be represented in type 'int' Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer (cherry picked from commit f72b9904fefa79d799d0f6ecc8bd97ce52658725) Signed-off-by: Michael Niedermayer URL: http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b15db639a5caccb2f69c1b37707e09820231b5f8 Author: Michael Niedermayer Date: Wed Oct 10 04:25:50 2018 +0200 avcodec/ra144: Fix integer overflow in add_wav() Fixes: signed integer overflow: -2144033225 + -5208934 cannot be represented in type 'int' Fixes: 10633/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_RA_144_fuzzer-5679133791617024 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer (cherry picked from commit c6282141cba20934d9801f31134872fabbd6ba3e) Signed-off-by: Michael Niedermayer URL: http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=6a5b0a3c751303d359876a85913f5fbbe3976a99 Author: Michael Niedermayer Date: Fri Oct 12 20:55:25 2018 +0200 avformat/utils: Never store negative values in last_IP_duration Fixes: integer overflow compute_pkt_fields() Fixes: compute_pkt_usan Reported-by: Thomas Guilbert Signed-off-by: Michael Niedermayer (cherry picked from commit 079d1a7175c4b881631a7e7f449c4c13b761cdeb) Signed-off-by: Michael Niedermayer URL: http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=51404bb4f6132c054c6266238d483846e6654ad3 Author: Michael Niedermayer Date: Fri Oct 12 03:00:32 2018 +0200 avformat/utils: Fix integer overflow in discontinuity check Fixes: signed integer overflow: 7738135736989908991 - -7954308516317364223 cannot be represented in type 'long' Fixes: find_stream_info_usan Reported-by: Thomas Guilbert Signed-off-by: Michael Niedermayer (cherry picked from commit 4e19cfcfa3944fe4cf97bea758f72f104dcaebad) Signed-off-by: Michael Niedermayer URL: http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=4b14c3ed7857e386ae49bd6f1c4124e52d1667f3 Author: Michael Niedermayer Date: Sat Sep 22 15:18:17 2018 +0200 avcodec/unary: Improve get_unary() docs Found-by: kierank Signed-off-by: Michael Niedermayer (cherry picked from commit ad89e203bfedf25df00e2a6ed9196170d772f25b) Signed-off-by: Michael Niedermayer URL: http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=9b95c4740d23d69e6693f974ab954c50957e4c4e Author: Michael Niedermayer Date: Thu Sep 13 03:33:50 2018 +0200 avcodec/dvdsubdec: Sanity check len in decode_rle() Fixes: Timeout Fixes: 9778/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_DVDSUB_fuzzer-5186007132536832 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer (cherry picked from commit e7b023e1db9fb13175929c02a02846d03510ec91) Signed-off-by: Michael Niedermayer URL: http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=58cb3ad576cb59b914b076246b116c59e084a116 Author: Michael Niedermayer Date: Sat Sep 15 00:20:38 2018 +0200 avcodec/mpeg4videodec: Fix undefined shi
[FFmpeg-cvslog] avformat/utils: Fix integer overflow in discontinuity check
ffmpeg | branch: release/4.0 | Michael Niedermayer | Fri Oct 12 03:00:32 2018 +0200| [b2e9d3da817f7ab4f3d5674bcb8085b616b476d0] | committer: Michael Niedermayer avformat/utils: Fix integer overflow in discontinuity check Fixes: signed integer overflow: 7738135736989908991 - -7954308516317364223 cannot be represented in type 'long' Fixes: find_stream_info_usan Reported-by: Thomas Guilbert Signed-off-by: Michael Niedermayer (cherry picked from commit 4e19cfcfa3944fe4cf97bea758f72f104dcaebad) Signed-off-by: Michael Niedermayer > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b2e9d3da817f7ab4f3d5674bcb8085b616b476d0 --- libavformat/utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/utils.c b/libavformat/utils.c index 685fdb9b76..d972884a38 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -3816,7 +3816,7 @@ FF_ENABLE_DEPRECATION_WARNINGS * sequence, we treat it as a discontinuity. */ if (st->info->fps_last_dts != AV_NOPTS_VALUE && st->info->fps_last_dts_idx > st->info->fps_first_dts_idx && -(pkt->dts - st->info->fps_last_dts) / 1000 > +(pkt->dts - (uint64_t)st->info->fps_last_dts) / 1000 > (st->info->fps_last_dts - (uint64_t)st->info->fps_first_dts) / (st->info->fps_last_dts_idx - st->info->fps_first_dts_idx)) { av_log(ic, AV_LOG_WARNING, ___ ffmpeg-cvslog mailing list ffmpeg-cvslog@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog
[FFmpeg-cvslog] avcodec/h264_cavlc: Check mb_skip_run
ffmpeg | branch: release/4.0 | Michael Niedermayer | Thu Oct 4 03:13:41 2018 +0200| [1061a2e2efa927a50a6f01babcd682803f2bddec] | committer: Michael Niedermayer avcodec/h264_cavlc: Check mb_skip_run Fixes: 10300/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_H264_fuzzer-6292205497483264 Fixes: signed integer overflow: -2147483648 - 1 cannot be represented in type 'int' Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer (cherry picked from commit f72b9904fefa79d799d0f6ecc8bd97ce52658725) Signed-off-by: Michael Niedermayer > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=1061a2e2efa927a50a6f01babcd682803f2bddec --- libavcodec/h264_cavlc.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/libavcodec/h264_cavlc.c b/libavcodec/h264_cavlc.c index 5e6a20304a..d82144e3c3 100644 --- a/libavcodec/h264_cavlc.c +++ b/libavcodec/h264_cavlc.c @@ -714,8 +714,14 @@ int ff_h264_decode_mb_cavlc(const H264Context *h, H264SliceContext *sl) cbp = 0; /* avoid warning. FIXME: find a solution without slowing down the code */ if (sl->slice_type_nos != AV_PICTURE_TYPE_I) { -if (sl->mb_skip_run == -1) -sl->mb_skip_run = get_ue_golomb_long(&sl->gb); +if (sl->mb_skip_run == -1) { +unsigned mb_skip_run = get_ue_golomb_long(&sl->gb); +if (mb_skip_run > h->mb_num) { +av_log(h->avctx, AV_LOG_ERROR, "mb_skip_run %d is invalid\n", mb_skip_run); +return AVERROR_INVALIDDATA; +} +sl->mb_skip_run = mb_skip_run; +} if (sl->mb_skip_run--) { if (FRAME_MBAFF(h) && (sl->mb_y & 1) == 0) { ___ ffmpeg-cvslog mailing list ffmpeg-cvslog@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog
[FFmpeg-cvslog] avcodec/ra144: Fix integer overflow in add_wav()
ffmpeg | branch: release/4.0 | Michael Niedermayer | Wed Oct 10 04:25:50 2018 +0200| [65b0caf47d730ef3318e0faaeb847366f5ac11fb] | committer: Michael Niedermayer avcodec/ra144: Fix integer overflow in add_wav() Fixes: signed integer overflow: -2144033225 + -5208934 cannot be represented in type 'int' Fixes: 10633/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_RA_144_fuzzer-5679133791617024 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer (cherry picked from commit c6282141cba20934d9801f31134872fabbd6ba3e) Signed-off-by: Michael Niedermayer > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=65b0caf47d730ef3318e0faaeb847366f5ac11fb --- libavcodec/ra144.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/ra144.c b/libavcodec/ra144.c index 573703d70b..65a744876c 100644 --- a/libavcodec/ra144.c +++ b/libavcodec/ra144.c @@ -1516,7 +1516,7 @@ static void add_wav(int16_t *dest, int n, int skip_first, int *m, if (v[0]) { for (i=0; i < BLOCKSIZE; i++) -dest[i] = ((int)(s1[i]*(unsigned)v[0]) + s2[i]*v[1] + s3[i]*v[2]) >> 12; +dest[i] = (int)((s1[i]*(unsigned)v[0]) + s2[i]*v[1] + s3[i]*v[2]) >> 12; } else { for (i=0; i < BLOCKSIZE; i++) dest[i] = ( s2[i]*v[1] + s3[i]*v[2]) >> 12; ___ ffmpeg-cvslog mailing list ffmpeg-cvslog@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog
[FFmpeg-cvslog] avformat/utils: Never store negative values in last_IP_duration
ffmpeg | branch: release/4.0 | Michael Niedermayer | Fri Oct 12 20:55:25 2018 +0200| [bccddd7fcc145f46c6120c3fcf2f9fa1139d3702] | committer: Michael Niedermayer avformat/utils: Never store negative values in last_IP_duration Fixes: integer overflow compute_pkt_fields() Fixes: compute_pkt_usan Reported-by: Thomas Guilbert Signed-off-by: Michael Niedermayer (cherry picked from commit 079d1a7175c4b881631a7e7f449c4c13b761cdeb) Signed-off-by: Michael Niedermayer > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=bccddd7fcc145f46c6120c3fcf2f9fa1139d3702 --- libavformat/utils.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libavformat/utils.c b/libavformat/utils.c index d972884a38..58ecaabd84 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -1352,7 +1352,7 @@ static void compute_pkt_fields(AVFormatContext *s, AVStream *st, /* This is tricky: the dts must be incremented by the duration * of the frame we are displaying, i.e. the last I- or P-frame. */ -if (st->last_IP_duration == 0) +if (st->last_IP_duration == 0 && (uint64_t)pkt->duration <= INT32_MAX) st->last_IP_duration = pkt->duration; if (pkt->dts != AV_NOPTS_VALUE) st->cur_dts = pkt->dts + st->last_IP_duration; @@ -1364,7 +1364,8 @@ static void compute_pkt_fields(AVFormatContext *s, AVStream *st, next_pts != AV_NOPTS_VALUE) pkt->pts = next_dts; -st->last_IP_duration = pkt->duration; +if ((uint64_t)pkt->duration <= INT32_MAX) +st->last_IP_duration = pkt->duration; st->last_IP_pts = pkt->pts; /* Cannot compute PTS if not present (we can compute it only * by knowing the future. */ ___ ffmpeg-cvslog mailing list ffmpeg-cvslog@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog
[FFmpeg-cvslog] Prepare 4.0.3 release
ffmpeg | branch: release/4.0 | Michael Niedermayer | Tue Oct 23 01:26:15 2018 +0200| [938bc919eac46b1b44a199dda0cad241d8e60e44] | committer: Michael Niedermayer Prepare 4.0.3 release Signed-off-by: Michael Niedermayer > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=938bc919eac46b1b44a199dda0cad241d8e60e44 --- Changelog| 67 RELEASE | 2 +- doc/Doxyfile | 2 +- 3 files changed, 69 insertions(+), 2 deletions(-) diff --git a/Changelog b/Changelog index e4be13807f..5fbe783021 100644 --- a/Changelog +++ b/Changelog @@ -1,6 +1,73 @@ Entries are sorted chronologically from oldest to youngest within each release, releases are sorted from youngest to oldest. +version 4.0.3: +- avcodec/jpeg2000dec: Fix off by 1 error in JPEG2000_PGOD_CPRL handling +- avcodec/mpeg4videodec: Fix typo in sprite delta check +- avcodec/h264_cavlc: Check mb_skip_run +- avcodec/ra144: Fix integer overflow in add_wav() +- avformat/utils: Never store negative values in last_IP_duration +- avformat/utils: Fix integer overflow in discontinuity check +- Revert "avcodec/cbs_h264: silence errors about end_of_seq nalus" +- avcodec/cbs: ensure user_data is padded for GBC parsing +- avcodec/cbs: fix crash in sei_pic_timestamp +- avcodec/cbs_h264: silence errors about end_of_seq nalus +- avcodec/cuviddec: properly take deinterlacing and display delay into account for buffer_full check +- avcodec/h2645_parse: skip NALUs with no content after stripping all the trailing zeros +- configure: _deps: validate, reduce sensitivity +- configure: speed up check_deps() +- configure: speed up print_enabled_components() +- configure: speed up flatten_extralibs_wrapper() +- avformat/utils: Fix potential integer overflow in extract_extradata() +- avcodec/unary: Improve get_unary() docs +- avcodec/gdv: Replace divisions by shifts in rescale() +- avcodec/ac3dec: Fix shift signedness in mask creation +- avcodec/eac3dec: Check that channel_map does not contain more than EAC3_MAX_CHANNELS +- doc/examples/vaapi_transcode: Fix the typo +- avcodec/dvdsubdec: Sanity check len in decode_rle() +- avcodec/mpeg4videodec: Fix undefined shift in get_amv() +- avcodec/zmbv: Check that the decompressed data size is correct +- avcodec/zmbv: Update decomp_len in raw frames +- avcodec/shorten: Fix bitstream end check in read_header() +- avcodec/dvdsubdec: Avoid branch in decode_run_8bit() +- avcodec/h264_refs: Document last if() in ff_h264_execute_ref_pic_marking() +- avcodec/ra144: Fix undefined integer overflow in add_wav() +- avcodec/indeo4: Check dimensions in decode_pic_hdr() +- avformat/mov: Error on too large stsd entry counts. +- examples: Fix use of AV_CODEC_FLAG_GLOBAL_HEADER +- avcodec/hq_hqa: Check remaining input bits in hqa_decode_mb() +- avcodec/vb: Check for end of bytestream before reading blocktype +- avcodec/snowdec: Fix integer overflow with motion vector residual +- avcodec/mpeg4videodec: Fix slice end detection in mpeg4_decode_studio_mb() +- avformat/nsvdec: Do not parse multiple NSVf +- avformat/dashdec: Fix strlen(rep_id_val) with it being NULL +- avformat/mlvdec: read_string() received unsigned size, make the argument unsigned +- avformat/rmdec: Fix EOF check in the stream loop in ivr_read_header() +- avcodec/scpr: Check for min > max in decompress_p() +- avcodec/shorten: Fix signed 32bit overflow in shift in shorten_decode_frame() +- avcodec/shorten: Fix integer overflow in residual/LPC combination +- avcodec/shorten: Check verbatim length +- avcodec/mpegaudio_parser: Initialize poutbuf* +- avcodec/aacpsdsp_template: Fix integer overflow in ps_stereo_interpolate_c() +- avformat/flvenc: Check audio packet size +- lavc/svq3: Fix regression decoding some files. +- avcodec/mlp_parser: Check if synccode is within buffer +- avcodec/qtrle: Check remaining bytestream in qtrle_decode_XYbpp() +- avcodec/diracdec: Check bytes count in else branch in decode_lowdelay() too +- avcodec/diracdec: Check slice numbers for overflows in relation to picture dimensions +- avcodec/diracdec: Change frame_number to 64bit as its a 32bit from the bitstream and we also have a -1 special case +- avcodec/dirac_dwt_template: Fix several integer overflows in horizontal_compose_daub97i() +- avcodec/diracdec: Prevent integer overflow in intermediate in global_mv() +- swresample/swresample: Fix input channel count in resample_first computation +- avutil/pixfmt: Document chroma plane size for odd resolutions +- lavf/libsmbclient: return AVERROR_EOF for EOF. +- lavc/videotoolboxenc: Fix compilation on osx 10.10.5 Yosemite +- avcodec/mediacodecdec: fix SEGV on modern nvidia decoders +- avcodec/bitstream_filters: check the input argument of av_bsf_get_by_name() for NULL +- avformat/librtmp: fix returning EOF from Read/Write +- avcodec/videotoolboxenc: fix undefined behavior with rc_max_rate=0 + + version 4.0.2: - avcodec/dvdsub_parser: Allocate input padding - avcodec/dvdsub_parser: Init outp
[FFmpeg-cvslog] avcodec/mpeg4videodec: Fix typo in sprite delta check
ffmpeg | branch: release/4.0 | Michael Niedermayer | Thu Oct 18 01:19:36 2018 +0200| [6e14fc4aa1a27790944d4791c5592a2fcdd727db] | committer: Michael Niedermayer avcodec/mpeg4videodec: Fix typo in sprite delta check Fixes: Integer overflow Fixes: 10890/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_MPEG4_fuzzer-5636062181851136 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer (cherry picked from commit b737317a8813e671c00b8ac7023c47e48ffeb1c8) Signed-off-by: Michael Niedermayer > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=6e14fc4aa1a27790944d4791c5592a2fcdd727db --- libavcodec/mpeg4videodec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/mpeg4videodec.c b/libavcodec/mpeg4videodec.c index f9ec0fd0c9..8064f1eb40 100644 --- a/libavcodec/mpeg4videodec.c +++ b/libavcodec/mpeg4videodec.c @@ -400,7 +400,7 @@ static int mpeg4_decode_sprite_trajectory(Mpeg4DecContext *ctx, GetBitContext *g llabs(sprite_offset[0][i] + sprite_delta[i][1] * (h+16LL)) >= INT_MAX || llabs(sprite_offset[0][i] + sprite_delta[i][0] * (w+16LL) + sprite_delta[i][1] * (h+16LL)) >= INT_MAX || llabs(sprite_delta[i][0] * (w+16LL)) >= INT_MAX || -llabs(sprite_delta[i][1] * (w+16LL)) >= INT_MAX || +llabs(sprite_delta[i][1] * (h+16LL)) >= INT_MAX || llabs(sd[0]) >= INT_MAX || llabs(sd[1]) >= INT_MAX || llabs(sprite_offset[0][i] + sd[0] * (w+16LL)) >= INT_MAX || ___ ffmpeg-cvslog mailing list ffmpeg-cvslog@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog
[FFmpeg-cvslog] avcodec/jpeg2000dec: Fix off by 1 error in JPEG2000_PGOD_CPRL handling
ffmpeg | branch: release/4.0 | Michael Niedermayer | Sat Oct 20 22:35:37 2018 +0200| [afebdc3ed789a9aa9b08d6f741ae93d8da77b051] | committer: Michael Niedermayer avcodec/jpeg2000dec: Fix off by 1 error in JPEG2000_PGOD_CPRL handling Fixes: assertion failure Fixes: 10785/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_JPEG2000_fuzzer-5672160496975872 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer (cherry picked from commit 305e523105f6f59e7572050f19edc9f4671c036c) Signed-off-by: Michael Niedermayer > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=afebdc3ed789a9aa9b08d6f741ae93d8da77b051 --- libavcodec/jpeg2000dec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/jpeg2000dec.c b/libavcodec/jpeg2000dec.c index 78db783616..fc14fb3bd6 100644 --- a/libavcodec/jpeg2000dec.c +++ b/libavcodec/jpeg2000dec.c @@ -1159,7 +1159,7 @@ static int jpeg2000_decode_packets_po_iteration(Jpeg2000DecoderContext *s, Jpeg2 step_x = 32; step_y = 32; -if (RSpoc > FFMIN(codsty->nreslevels, REpoc)) +if (RSpoc >= FFMIN(codsty->nreslevels, REpoc)) continue; for (reslevelno = RSpoc; reslevelno < FFMIN(codsty->nreslevels, REpoc); reslevelno++) { ___ ffmpeg-cvslog mailing list ffmpeg-cvslog@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog
[FFmpeg-cvslog] avcodec/jpeg2000dec: Fix off by 1 error in JPEG2000_PGOD_CPRL handling
ffmpeg | branch: master | Michael Niedermayer | Sat Oct 20 22:35:37 2018 +0200| [305e523105f6f59e7572050f19edc9f4671c036c] | committer: Michael Niedermayer avcodec/jpeg2000dec: Fix off by 1 error in JPEG2000_PGOD_CPRL handling Fixes: assertion failure Fixes: 10785/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_JPEG2000_fuzzer-5672160496975872 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=305e523105f6f59e7572050f19edc9f4671c036c --- libavcodec/jpeg2000dec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/jpeg2000dec.c b/libavcodec/jpeg2000dec.c index 96dab8e176..5b07f07aa9 100644 --- a/libavcodec/jpeg2000dec.c +++ b/libavcodec/jpeg2000dec.c @@ -1162,7 +1162,7 @@ static int jpeg2000_decode_packets_po_iteration(Jpeg2000DecoderContext *s, Jpeg2 step_x = 32; step_y = 32; -if (RSpoc > FFMIN(codsty->nreslevels, REpoc)) +if (RSpoc >= FFMIN(codsty->nreslevels, REpoc)) continue; for (reslevelno = RSpoc; reslevelno < FFMIN(codsty->nreslevels, REpoc); reslevelno++) { ___ ffmpeg-cvslog mailing list ffmpeg-cvslog@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog
[FFmpeg-cvslog] avcodec/ilbcdec: Check startindex
ffmpeg | branch: master | Michael Niedermayer | Sun Oct 21 00:35:12 2018 +0200| [e90f0ac334f2bec0961955dceb824148594a4016] | committer: Michael Niedermayer avcodec/ilbcdec: Check startindex Fixes: Out of array read Fixes: 10789/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_ILBC_fuzzer-5153255445757952 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Reviewed-by: Paul B Mahol Signed-off-by: Michael Niedermayer > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e90f0ac334f2bec0961955dceb824148594a4016 --- libavcodec/ilbcdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/ilbcdec.c b/libavcodec/ilbcdec.c index 8f234b98e1..8a6dbe0b75 100644 --- a/libavcodec/ilbcdec.c +++ b/libavcodec/ilbcdec.c @@ -1372,7 +1372,7 @@ static int ilbc_decode_frame(AVCodecContext *avctx, void *data, if (unpack_frame(s)) mode = 0; -if (s->frame.start < 1) +if (s->frame.start < 1 || s->frame.start > 5) mode = 0; if (mode) { ___ ffmpeg-cvslog mailing list ffmpeg-cvslog@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog
[FFmpeg-cvslog] cbs_h264: Fix SPS used for pic_timing timestamp
ffmpeg | branch: master | Mark Thompson | Tue Oct 16 22:01:27 2018 +0100| [e5fda1ff289692ffb538e04abb66a9b550750596] | committer: Mark Thompson cbs_h264: Fix SPS used for pic_timing timestamp It should be the same as the one used for the rest of the pic_timing structure. > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e5fda1ff289692ffb538e04abb66a9b550750596 --- libavcodec/cbs_h264_syntax_template.c | 15 --- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/libavcodec/cbs_h264_syntax_template.c b/libavcodec/cbs_h264_syntax_template.c index 1a9fb9cfeb..7d0ce5918a 100644 --- a/libavcodec/cbs_h264_syntax_template.c +++ b/libavcodec/cbs_h264_syntax_template.c @@ -551,10 +551,9 @@ static int FUNC(sei_buffering_period)(CodedBitstreamContext *ctx, RWContext *rw, } static int FUNC(sei_pic_timestamp)(CodedBitstreamContext *ctx, RWContext *rw, - H264RawSEIPicTimestamp *current) + H264RawSEIPicTimestamp *current, + const H264RawSPS *sps) { -CodedBitstreamH264Context *h264 = ctx->priv_data; -const H264RawSPS *sps; uint8_t time_offset_length; int err; @@ -583,13 +582,6 @@ static int FUNC(sei_pic_timestamp)(CodedBitstreamContext *ctx, RWContext *rw, } } -sps = h264->active_sps; -if (!sps) { -av_log(ctx->log_ctx, AV_LOG_ERROR, - "No active SPS for pic_timestamp.\n"); -return AVERROR_INVALIDDATA; -} - if (sps->vui.nal_hrd_parameters_present_flag) time_offset_length = sps->vui.nal_hrd_parameters.time_offset_length; else if (sps->vui.vcl_hrd_parameters_present_flag) @@ -669,7 +661,8 @@ static int FUNC(sei_pic_timing)(CodedBitstreamContext *ctx, RWContext *rw, for (i = 0; i < num_clock_ts[current->pic_struct]; i++) { flags(clock_timestamp_flag[i], 1, i); if (current->clock_timestamp_flag[i]) -CHECK(FUNC(sei_pic_timestamp)(ctx, rw, ¤t->timestamp[i])); +CHECK(FUNC(sei_pic_timestamp)(ctx, rw, + ¤t->timestamp[i], sps)); } } ___ ffmpeg-cvslog mailing list ffmpeg-cvslog@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog
[FFmpeg-cvslog] cbs_h264: Actually decompose end-of-sequence NAL units
ffmpeg | branch: master | Mark Thompson | Tue Oct 16 22:01:26 2018 +0100| [3143fe34f622ae61ca75a65feba3a8f1a497567e] | committer: Mark Thompson cbs_h264: Actually decompose end-of-sequence NAL units 64c50c0e978cd556dc2da238dfe0bb367e7c1ab9 declared support for decomposing them but omitted to implement it; this adds an implementation. Also do the same for end-of-stream NAL units, since they are equivalent. > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=3143fe34f622ae61ca75a65feba3a8f1a497567e --- libavcodec/cbs_h2645.c| 32 +++- libavcodec/cbs_h264_syntax_template.c | 18 ++ 2 files changed, 49 insertions(+), 1 deletion(-) diff --git a/libavcodec/cbs_h2645.c b/libavcodec/cbs_h2645.c index 4b31601c0f..a1b92c87ce 100644 --- a/libavcodec/cbs_h2645.c +++ b/libavcodec/cbs_h2645.c @@ -872,7 +872,21 @@ static int cbs_h264_read_nal_unit(CodedBitstreamContext *ctx, break; case H264_NAL_END_SEQUENCE: -return 0; +case H264_NAL_END_STREAM: +{ +err = ff_cbs_alloc_unit_content(ctx, unit, +sizeof(H264RawNALUnitHeader), +NULL); +if (err < 0) +return err; + +err = (unit->type == H264_NAL_END_SEQUENCE ? + cbs_h264_read_end_of_sequence : + cbs_h264_read_end_of_stream)(ctx, &gbc, unit->content); +if (err < 0) +return err; +} +break; default: return AVERROR(ENOSYS); @@ -1147,6 +1161,22 @@ static int cbs_h264_write_nal_unit(CodedBitstreamContext *ctx, } break; +case H264_NAL_END_SEQUENCE: +{ +err = cbs_h264_write_end_of_sequence(ctx, pbc, unit->content); +if (err < 0) +return err; +} +break; + +case H264_NAL_END_STREAM: +{ +err = cbs_h264_write_end_of_stream(ctx, pbc, unit->content); +if (err < 0) +return err; +} +break; + default: av_log(ctx->log_ctx, AV_LOG_ERROR, "Write unimplemented for " "NAL unit type %"PRIu32".\n", unit->type); diff --git a/libavcodec/cbs_h264_syntax_template.c b/libavcodec/cbs_h264_syntax_template.c index 1c8d7d5eae..1a9fb9cfeb 100644 --- a/libavcodec/cbs_h264_syntax_template.c +++ b/libavcodec/cbs_h264_syntax_template.c @@ -1375,3 +1375,21 @@ static int FUNC(filler)(CodedBitstreamContext *ctx, RWContext *rw, return 0; } + +static int FUNC(end_of_sequence)(CodedBitstreamContext *ctx, RWContext *rw, + H264RawNALUnitHeader *current) +{ +HEADER("End of Sequence"); + +return FUNC(nal_unit_header)(ctx, rw, current, + 1 << H264_NAL_END_SEQUENCE); +} + +static int FUNC(end_of_stream)(CodedBitstreamContext *ctx, RWContext *rw, + H264RawNALUnitHeader *current) +{ +HEADER("End of Stream"); + +return FUNC(nal_unit_header)(ctx, rw, current, + 1 << H264_NAL_END_STREAM); +} ___ ffmpeg-cvslog mailing list ffmpeg-cvslog@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog
[FFmpeg-cvslog] cbs_h2645: Allocate all internal buffers with padding
ffmpeg | branch: master | Mark Thompson | Tue Oct 16 22:01:28 2018 +0100| [da6db843b80e6140dbf28f05195b6a17018fd68c] | committer: Mark Thompson cbs_h2645: Allocate all internal buffers with padding Any of these buffers (for both H.264 and H.265) might reasonably be parsed using the bitstream reader, so include padding on all of them. > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=da6db843b80e6140dbf28f05195b6a17018fd68c --- libavcodec/cbs_h2645.c| 3 ++- libavcodec/cbs_h264_syntax_template.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/libavcodec/cbs_h2645.c b/libavcodec/cbs_h2645.c index a1b92c87ce..e55bd00183 100644 --- a/libavcodec/cbs_h2645.c +++ b/libavcodec/cbs_h2645.c @@ -319,7 +319,8 @@ static int cbs_h2645_read_more_rbsp_data(GetBitContext *gbc) #define byte_alignment(rw) (get_bits_count(rw) % 8) #define allocate(name, size) do { \ -name ## _ref = av_buffer_allocz(size); \ +name ## _ref = av_buffer_allocz(size + \ +AV_INPUT_BUFFER_PADDING_SIZE); \ if (!name ## _ref) \ return AVERROR(ENOMEM); \ name = name ## _ref->data; \ diff --git a/libavcodec/cbs_h264_syntax_template.c b/libavcodec/cbs_h264_syntax_template.c index 7d0ce5918a..9e29132fec 100644 --- a/libavcodec/cbs_h264_syntax_template.c +++ b/libavcodec/cbs_h264_syntax_template.c @@ -718,7 +718,7 @@ static int FUNC(sei_user_data_registered)(CodedBitstreamContext *ctx, RWContext *payload_size = i + current->data_length; #endif -allocate(current->data, current->data_length + AV_INPUT_BUFFER_PADDING_SIZE); +allocate(current->data, current->data_length); for (j = 0; j < current->data_length; j++) xu(8, itu_t_t35_payload_byte[i], current->data[j], 0x00, 0xff, 1, i + j); ___ ffmpeg-cvslog mailing list ffmpeg-cvslog@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog
[FFmpeg-cvslog] avcodec/mpeg4videodec: Fix typo in sprite delta check
ffmpeg | branch: master | Michael Niedermayer | Thu Oct 18 01:19:36 2018 +0200| [b737317a8813e671c00b8ac7023c47e48ffeb1c8] | committer: Michael Niedermayer avcodec/mpeg4videodec: Fix typo in sprite delta check Fixes: Integer overflow Fixes: 10890/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_MPEG4_fuzzer-5636062181851136 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b737317a8813e671c00b8ac7023c47e48ffeb1c8 --- libavcodec/mpeg4videodec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/mpeg4videodec.c b/libavcodec/mpeg4videodec.c index f435a520c8..233b8525ce 100644 --- a/libavcodec/mpeg4videodec.c +++ b/libavcodec/mpeg4videodec.c @@ -402,7 +402,7 @@ static int mpeg4_decode_sprite_trajectory(Mpeg4DecContext *ctx, GetBitContext *g llabs(sprite_offset[0][i] + sprite_delta[i][1] * (h+16LL)) >= INT_MAX || llabs(sprite_offset[0][i] + sprite_delta[i][0] * (w+16LL) + sprite_delta[i][1] * (h+16LL)) >= INT_MAX || llabs(sprite_delta[i][0] * (w+16LL)) >= INT_MAX || -llabs(sprite_delta[i][1] * (w+16LL)) >= INT_MAX || +llabs(sprite_delta[i][1] * (h+16LL)) >= INT_MAX || llabs(sd[0]) >= INT_MAX || llabs(sd[1]) >= INT_MAX || llabs(sprite_offset[0][i] + sd[0] * (w+16LL)) >= INT_MAX || ___ ffmpeg-cvslog mailing list ffmpeg-cvslog@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog
[FFmpeg-cvslog] lavf/vc1test: add rcv to vc1test demuxer extensions
ffmpeg | branch: master | Jun Zhao | Fri Oct 12 21:31:09 2018 +0800| [18fce29d8f1ba73a736318519cd030946a9fec91] | committer: Jun Zhao lavf/vc1test: add rcv to vc1test demuxer extensions rcv is commonly used as extension for vc1 test stream files. Signed-off-by: Jun Zhao > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=18fce29d8f1ba73a736318519cd030946a9fec91 --- libavformat/vc1test.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavformat/vc1test.c b/libavformat/vc1test.c index 64a45cd3a7..d44570988b 100644 --- a/libavformat/vc1test.c +++ b/libavformat/vc1test.c @@ -122,5 +122,6 @@ AVInputFormat ff_vc1t_demuxer = { .read_probe = vc1t_probe, .read_header= vc1t_read_header, .read_packet= vc1t_read_packet, +.extensions = "rcv", .flags = AVFMT_GENERIC_INDEX, }; ___ ffmpeg-cvslog mailing list ffmpeg-cvslog@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog
[FFmpeg-cvslog] lavf/vc1test: fix vc1test can't probe some RCV file.
ffmpeg | branch: master | Jun Zhao | Thu Oct 11 18:22:09 2018 +0800| [cc82402ed3990853311fd133a3dc03692714d65c] | committer: Jun Zhao lavf/vc1test: fix vc1test can't probe some RCV file. case 1: use the hexdump -C SMM0005.rcv get: size skip (size - 4) || VV 18 00 00 c5 05 00 00 00 4d f1 0a 11 00 e0 01 00 0010 00 d0 02 00 00 0c 00 00 00 88 13 00 00 c0 65 52 ^ | size + 16 case 2: same the command for SMM0015.rcv get: size | V 19 00 00 c5 04 00 00 00 41 f3 80 01 40 02 00 00 0010 d0 02 00 00 0c 00 00 00 00 00 00 10 00 00 00 00 ^ | size + 16 There are different the RCV file format for VC-1, vc1test just handle the case 2 now, this fix will support the case 1. (Both of test clips come from: SMPTE Recommended Practice - VC-1 Decoder and Bitstream Conformance). And I think I got a older VC-1 test clip in the case 1. Reviewed-by: Carl Eugen Hoyos Reviewed-by: Jerome Borsboom Reviewed-by: Michael Niedermayer Signed-off-by: Jun Zhao Signed-off-by: Yan, FengX > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=cc82402ed3990853311fd133a3dc03692714d65c --- libavformat/vc1test.c | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/libavformat/vc1test.c b/libavformat/vc1test.c index a801f4bd22..64a45cd3a7 100644 --- a/libavformat/vc1test.c +++ b/libavformat/vc1test.c @@ -34,9 +34,14 @@ static int vc1t_probe(AVProbeData *p) { +uint32_t size; + if (p->buf_size < 24) return 0; -if (p->buf[3] != 0xC5 || AV_RL32(&p->buf[4]) != 4 || AV_RL32(&p->buf[20]) != 0xC) + +size = AV_RL32(&p->buf[4]); +if (p->buf[3] != 0xC5 || size < 4 || size > p->buf_size - 20 || +AV_RL32(&p->buf[size+16]) != 0xC) return 0; return AVPROBE_SCORE_EXTENSION; @@ -48,9 +53,10 @@ static int vc1t_read_header(AVFormatContext *s) AVStream *st; int frames; uint32_t fps; +uint32_t size; frames = avio_rl24(pb); -if(avio_r8(pb) != 0xC5 || avio_rl32(pb) != 4) +if (avio_r8(pb) != 0xC5 || ((size = avio_rl32(pb)) < 4)) return AVERROR_INVALIDDATA; /* init video codec */ @@ -63,6 +69,8 @@ static int vc1t_read_header(AVFormatContext *s) if (ff_get_extradata(s, st->codecpar, pb, VC1_EXTRADATA_SIZE) < 0) return AVERROR(ENOMEM); + +avio_skip(pb, size - 4); st->codecpar->height = avio_rl32(pb); st->codecpar->width = avio_rl32(pb); if(avio_rl32(pb) != 0xC) ___ ffmpeg-cvslog mailing list ffmpeg-cvslog@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog
[FFmpeg-cvslog] avfilter/setfield, setrange : set color property to auto
ffmpeg | branch: master | Martin Vignali | Sun Oct 21 22:47:57 2018 +0200| [cfdbefdd90b0d5d88624decd25802ac99ea5d859] | committer: Martin Vignali avfilter/setfield, setrange : set color property to auto > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=cfdbefdd90b0d5d88624decd25802ac99ea5d859 --- libavfilter/vf_setparams.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/libavfilter/vf_setparams.c b/libavfilter/vf_setparams.c index 6d8ab188c0..dfd7efc314 100644 --- a/libavfilter/vf_setparams.c +++ b/libavfilter/vf_setparams.c @@ -193,6 +193,9 @@ static av_cold int init_setrange(AVFilterContext *ctx) SetParamsContext *s = ctx->priv; s->field_mode = MODE_AUTO;/* set field mode to auto */ +s->color_primaries = -1; +s->color_trc = -1; +s->colorspace = -1; return 0; } @@ -224,6 +227,9 @@ static av_cold int init_setfield(AVFilterContext *ctx) SetParamsContext *s = ctx->priv; s->color_range = -1;/* set range mode to auto */ +s->color_primaries = -1; +s->color_trc = -1; +s->colorspace = -1; return 0; } ___ ffmpeg-cvslog mailing list ffmpeg-cvslog@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog
[FFmpeg-cvslog] avfilter/setparams : update filter description
ffmpeg | branch: master | Martin Vignali | Sun Oct 21 22:43:14 2018 +0200| [997f03cd7eb92c03ea429d2ebe0a43c25d183599] | committer: Martin Vignali avfilter/setparams : update filter description > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=997f03cd7eb92c03ea429d2ebe0a43c25d183599 --- libavfilter/vf_setparams.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/vf_setparams.c b/libavfilter/vf_setparams.c index 51f6d655b8..6d8ab188c0 100644 --- a/libavfilter/vf_setparams.c +++ b/libavfilter/vf_setparams.c @@ -163,7 +163,7 @@ static const AVFilterPad outputs[] = { AVFilter ff_vf_setparams = { .name= "setparams", -.description = NULL_IF_CONFIG_SMALL("Force field, or color range for the output video frame."), +.description = NULL_IF_CONFIG_SMALL("Force field, or color property for the output video frame."), .priv_size = sizeof(SetParamsContext), .priv_class = &setparams_class, .inputs = inputs, ___ ffmpeg-cvslog mailing list ffmpeg-cvslog@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog
[FFmpeg-cvslog] avfilter/setparams : fix colorspace option
ffmpeg | branch: master | Martin Vignali | Sun Oct 21 22:48:43 2018 +0200| [6953ff714fb6377ef84b4cba08539f282945a629] | committer: Martin Vignali avfilter/setparams : fix colorspace option > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=6953ff714fb6377ef84b4cba08539f282945a629 --- libavfilter/vf_setparams.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/vf_setparams.c b/libavfilter/vf_setparams.c index dfd7efc314..fe298e5a06 100644 --- a/libavfilter/vf_setparams.c +++ b/libavfilter/vf_setparams.c @@ -96,7 +96,7 @@ static const AVOption setparams_options[] = { {"smpte428", NULL, 0, AV_OPT_TYPE_CONST, {.i64=AVCOL_TRC_SMPTE428}, INT_MIN, INT_MAX, FLAGS, "color_trc"}, {"arib-std-b67", NULL, 0, AV_OPT_TYPE_CONST, {.i64=AVCOL_TRC_ARIB_STD_B67}, INT_MIN, INT_MAX, FLAGS, "color_trc"}, -{"colorspace", "select colorspace", OFFSET(color_trc), AV_OPT_TYPE_INT, {.i64=-1}, -1, AVCOL_SPC_NB-1, FLAGS, "colorspace"}, +{"colorspace", "select colorspace", OFFSET(colorspace), AV_OPT_TYPE_INT, {.i64=-1}, -1, AVCOL_SPC_NB-1, FLAGS, "colorspace"}, {"auto", "keep the same colorspace", 0, AV_OPT_TYPE_CONST, {.i64=-1}, INT_MIN, INT_MAX, FLAGS, "colorspace"}, {"gbr",NULL, 0, AV_OPT_TYPE_CONST, {.i64=AVCOL_SPC_RGB}, INT_MIN, INT_MAX, FLAGS, "colorspace"}, {"bt709", NULL, 0, AV_OPT_TYPE_CONST, {.i64=AVCOL_SPC_BT709}, INT_MIN, INT_MAX, FLAGS, "colorspace"}, ___ ffmpeg-cvslog mailing list ffmpeg-cvslog@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog