Re: [FFmpeg-devel] [PATCH 1/6] avcodec/libvpxenc: fix alpha stride

2019-11-05 Thread James Zern
On Fri, Nov 1, 2019 at 11:47 AM James Zern wrote: > > On Sun, Oct 27, 2019 at 10:10 AM Marton Balint wrote: > > > > Signed-off-by: Marton Balint > > --- > > libavcodec/libvpxenc.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > lgtm. applied, thanks. _

Re: [FFmpeg-devel] [PATCH 3/6] avcodec/libvpxdec: make sure BlockAdditional side data size >= 8

2019-11-05 Thread James Zern
On Fri, Nov 1, 2019 at 11:52 AM James Zern wrote: > > On Sun, Oct 27, 2019 at 10:11 AM Marton Balint wrote: > > > > Signed-off-by: Marton Balint > > --- > > libavcodec/libvpxdec.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > lgtm. good catch. applied, thanks. _

Re: [FFmpeg-devel] [PATCH 6/6] avcodec/libvpxdec: reject video and alpha dimension mismatches

2019-11-05 Thread James Zern
On Fri, Nov 1, 2019 at 1:01 PM James Zern wrote: > > On Sun, Oct 27, 2019 at 10:11 AM Marton Balint wrote: > > > > Signed-off-by: Marton Balint > > --- > > libavcodec/libvpxdec.c | 11 +++ > > 1 file changed, 11 insertions(+) > > > > lgtm. applied, thanks. _

Re: [FFmpeg-devel] [PATCH] avcodec/extract_extradata_bsf: fix typo in comments

2019-11-05 Thread Gyan
On 06-11-2019 12:30 pm, leozhang wrote: Signed-off-by: leozhang --- libavcodec/extract_extradata_bsf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavcodec/extract_extradata_bsf.c b/libavcodec/extract_extradata_bsf.c index 17e5deb..ff111de 100644 --- a/libavco

Re: [FFmpeg-devel] [PATCH 5/6] avcodec/libvpxdec: decode to custom framebuffers for vp9

2019-11-05 Thread James Zern
On Fri, Nov 1, 2019 at 1:01 PM James Zern wrote: > > On Sun, Oct 27, 2019 at 10:11 AM Marton Balint wrote: > > > > This avoids copying the full frame after decoding. > > > > Signed-off-by: Marton Balint > > --- > > libavcodec/libvpxdec.c | 73 > > ++-

Re: [FFmpeg-devel] [PATCH 4/6] avcodec/libvpxdec: pass decoder instances to vpx_init directly

2019-11-05 Thread James Zern
On Fri, Nov 1, 2019 at 11:55 AM James Zern wrote: > > On Sun, Oct 27, 2019 at 10:11 AM Marton Balint wrote: > > > > If the alpha decoder init failed we presented the error message from the > > normal > > decoder. This change should prevent such mistakes. > > > > Signed-off-by: Marton Balint > >

Re: [FFmpeg-devel] [PATCHv2 2/6] avcodec/libvpxenc: only allocate alpha U/V planes on size changes

2019-11-05 Thread James Zern
On Mon, Nov 4, 2019 at 4:55 PM James Zern wrote: > > On Sat, Nov 2, 2019 at 9:20 AM Marton Balint wrote: > > > > Signed-off-by: Marton Balint > > --- > > libavcodec/libvpxenc.c | 60 > > ++ > > 1 file changed, 36 insertions(+), 24 deletions(-) >

[FFmpeg-devel] [PATCH] lavc/vaapi_decode: Set surfaces reference pool size according to SPS for H.264/HEVC

2019-11-05 Thread Linjie Fu
Set surfaces pool used for storing reference frames dynamically according to SPS.(reference framecount, reordered frame number, etc) Compared to a fixed pool size for H.264 and HEVC, the usage of GPU memory could be improved. CMD: ffmpeg -hwaccel vaapi -vaapi_device /dev/dri/renderD128 -i

[FFmpeg-devel] [PATCH 21/23] avformat/matroskaenc: Only write tracks if there is a track

2019-11-05 Thread Andreas Rheinhardt
The Matroska muxer does not write every stream as a Matroska track; some streams are written as attachments. But should no stream be written as a Matroska track, the Matroska muxer would nevertheless write a Tracks element without a TrackEntry. This is against the spec. This commit changes this and

[FFmpeg-devel] [PATCH 10/23] avformat/matroskaenc: Automatically use right TrackNumber in cues

2019-11-05 Thread Andreas Rheinhardt
mkv_cuepoint (the structure used to store the index entries in our Matroska muxer) currently contains fields for both the index of the packet's stream in the AVFormatContext->streams array and for the Matroska TrackNumber; correspondingly, mkv_add_cuepoint() has arguments for both. But these two nu

[FFmpeg-devel] [PATCH 08/23] avformat/matroskaenc: Remove useless AVIOContext

2019-11-05 Thread Andreas Rheinhardt
Write a few numbers directly via AV_WB32 instead of using an AVIOContext (that is initialized only for this very purpose) to write these numbers at known offsets into a fixed buffer. Signed-off-by: Andreas Rheinhardt --- libavformat/matroskaenc.c | 23 ++- 1 file changed, 10

[FFmpeg-devel] [PATCH 18/23] avformat/matroskaenc: Warn that WebM doesn't support attachments

2019-11-05 Thread Andreas Rheinhardt
As WebM doesn't support attachments, the Matroska muxer drops them when in WebM mode. This happened silently until this commit which adds a warning for this. Signed-off-by: Andreas Rheinhardt --- libavformat/matroskaenc.c | 19 --- 1 file changed, 12 insertions(+), 7 deletions(-)

[FFmpeg-devel] [PATCH 03/23] avformat/matroskaenc: Use random TrackUID

2019-11-05 Thread Andreas Rheinhardt
Up until now, the TrackUID of a Matroska track which is supposed to be random was not random at all: It always coincided with the TrackNumber which is usually the 1-based index of the corresponding stream in the array of AVStreams. This has been changed: It is now set via an AVLFG if AVFMT_FLAG_BIT

[FFmpeg-devel] [PATCH 04/23] avformat/matroskaenc: Remove allocations for attachments

2019-11-05 Thread Andreas Rheinhardt
If there are attachments to write, the Matroska muxer currently allocates two objects: An array that contains an entry for each attachment containing just the stream index of the corresponding stream and the uid used for this attachment; and a structure with a pointer to said array and a counter fo

[FFmpeg-devel] [PATCH 01/23] avformat/matroskaenc: Fix ReferenceBlock timestamp

2019-11-05 Thread Andreas Rheinhardt
In order to indicate that the frames in a BlockGroup are not keyframes, one has to add a ReferenceBlock element containing the timestamp of a reference block that has already been written. The timestamp ought to be relative to the timestamp of the block it is attached to. Yet the Matroska muxer use

[FFmpeg-devel] [PATCH 16/23] avformat/matroskadec: Don't forward empty attachment filename

2019-11-05 Thread Andreas Rheinhardt
While the Matroska specification allows the filename string to be empty, forwarding an empty string as tag is useless. Signed-off-by: Andreas Rheinhardt --- libavformat/matroskadec.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libavformat/matroskadec.c b/libavformat/m

[FFmpeg-devel] [PATCH 19/23] avformat/matroskaenc: Improve mimetype search

2019-11-05 Thread Andreas Rheinhardt
Use the mime_types of the corresponding AVCodecDescriptor instead of own arrays. The former are more encompassing. Signed-off-by: Andreas Rheinhardt --- libavcodec/codec_desc.c | 1 + libavformat/matroskaenc.c | 14 +++--- 2 files changed, 4 insertions(+), 11 deletions(-) diff --git

[FFmpeg-devel] [PATCH 22/23] avformat/matroskaenc: Don't waste bytes on length fields

2019-11-05 Thread Andreas Rheinhardt
Several EBML master elements for which a good upper bound of the final length was available were nevertheless written as unknown-length EBML-elements, so that their length field was eight bytes long. This has been changed. Signed-off-by: Andreas Rheinhardt --- libavformat/matroskaenc.c

[FFmpeg-devel] [PATCH 23/23] avformat/matroskaenc: Cosmetics

2019-11-05 Thread Andreas Rheinhardt
Mainly reindentation. Signed-off-by: Andreas Rheinhardt --- libavformat/matroskaenc.c | 88 +++ 1 file changed, 44 insertions(+), 44 deletions(-) diff --git a/libavformat/matroskaenc.c b/libavformat/matroskaenc.c index 776911e517..5e3f9144a0 100644 --- a/liba

[FFmpeg-devel] [PATCH 09/23] avformat/matroskaenc: Ignore attachments for track limit

2019-11-05 Thread Andreas Rheinhardt
Attachments are streams in FFmpeg, but they are not tracks in Matroska. Yet they were counted when checking a limit for the number of tracks that the Matroska muxer imposes. This is unnecessary and has been changed. (The Matroska file format actually has practically no limit on the number of track

[FFmpeg-devel] [PATCH 15/23] avformat/matroskaenc: Don't use size of inexistent cluster

2019-11-05 Thread Andreas Rheinhardt
In order to determine whether the current cluster needs to be closed because of the limits on cluster-size and cluster-time, mkv_write_packet() would first get the size of the current cluster via applying avio_tell() on the dynamic buffer holding the current cluster. It did this without checking wh

[FFmpeg-devel] [PATCH 20/23] avformat/matroskaenc: Check mimetypes earlier

2019-11-05 Thread Andreas Rheinhardt
This avoids errors lateron after the file header has already been partially written. Signed-off-by: Andreas Rheinhardt --- libavformat/matroskaenc.c | 35 ++- 1 file changed, 22 insertions(+), 13 deletions(-) diff --git a/libavformat/matroskaenc.c b/libavformat/m

[FFmpeg-devel] [PATCH 17/23] avformat/matroskaenc: Allow empty filename for attachments

2019-11-05 Thread Andreas Rheinhardt
The EBML as well as the Matroska specifications allow empty strings, yet the Matroska muxer enforced the requirement that a filename tag exists for attachments and errored out if it didn't. This has been changed: In the absence of a filename, an empty string is used. Signed-off-by: Andreas Rheinha

[FFmpeg-devel] [PATCH 06/23] avformat/matroskaenc: Avoid allocations for seekheads

2019-11-05 Thread Andreas Rheinhardt
Up until e7ddafd5, the Matroska muxer wrote two seekheads: One at the beginning referencing the main level 1 elements (i.e. not the clusters) and one at the end, referencing the clusters. This second seekhead was useless and has therefore been removed. Yet the seekhead-related functions and structu

[FFmpeg-devel] [PATCH 13/23] avformat/matroskaenc: Improve cues in case of no-video

2019-11-05 Thread Andreas Rheinhardt
The Matroska muxer currently only adds CuePoints in three cases: a) For video keyframes. b) For the first audio frame in a new cluster if in dash-mode. c) For subtitles. This means that ordinary Matroska audio files won't have any cues which impedes seeking. This commit changes this. For every tra

[FFmpeg-devel] [PATCH 07/23] avformat/matroskaenc: Improve writing video-projection

2019-11-05 Thread Andreas Rheinhardt
The Matroska video-projection master element has such a small maximum length that it can always be written with a length field of length one. So it is unnecessary to first write the element into a dynamic buffer to get the accurate length in order not to waste bytes on the length field. Signed-off

[FFmpeg-devel] [PATCH 14/23] avformat/matroskaenc: Remove outdated comment

2019-11-05 Thread Andreas Rheinhardt
This comment does not account for the fact that the limits on cluster size and duration are configurable by the user since 98308bd4. Signed-off-by: Andreas Rheinhardt --- libavformat/matroskaenc.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/libavformat/matroskaenc.c b/libavformat/matros

[FFmpeg-devel] [PATCH 05/23] avformat/matroskaenc: Check functions that can fail

2019-11-05 Thread Andreas Rheinhardt
Sometimes it has not been checked whether opening the dynamic buffer for writing tags fails; this might have led to segfaults. Signed-off-by: Andreas Rheinhardt --- libavformat/matroskaenc.c | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/libavformat/matroskaenc.c

[FFmpeg-devel] [PATCH 12/23] avformat/matroskaenc: Add check for using explicit track number

2019-11-05 Thread Andreas Rheinhardt
When creating dash streams, the track number is externally prescribed and not derived from the number of streams in the AVFormatContext. Up until now, a track number of zero was allowed, although this is an illegal track number. Furthermore, it was not checked whether the number of tracks for a fil

[FFmpeg-devel] [PATCH 02/23] avformat/matroskaenc: Fix potential leak of cached packet

2019-11-05 Thread Andreas Rheinhardt
If mkv_write_trailer() is not called, the cached audio packet might leak; so unref it in mkv_deinit(). Signed-off-by: Andreas Rheinhardt --- When I initially wrote the deinit function, I was under the impression that the user always has to call av_write_trailer(). Therefore this has been forgotte

[FFmpeg-devel] [PATCH 11/23] avformat/matroskaenc: Increase max supported tracks

2019-11-05 Thread Andreas Rheinhardt
Our code can actually write tracks with a TrackNum in the range of 1..127 without problems. Variable length integers that only have '1' bits after the marker bit are not reserved when being used to encode the TrackNumber in a block (there is no equivalent of unknown length elements here). Signed-o

[FFmpeg-devel] [PATCH] lavf/movenc: Replace dts by pts to calculate duration

2019-11-05 Thread manuelyuan
From: Mengyang Yuan In this case, the input video is of dynamic frame rate and we don't want to duplicate or drop frames, but the output video duration calculated by DTS is incorrect, I solved it by using PTS. There are many UGC videos with dynamic frame rates, which are represented by PTS jumps.

Re: [FFmpeg-devel] [PATCH 2/5] avcodec/nuv: Move comptype check up

2019-11-05 Thread Carl Eugen Hoyos
Am Sa., 2. Nov. 2019 um 17:08 Uhr schrieb Michael Niedermayer : > > Fixes: Timeout (23sec -> 5ms) > Fixes: > 18517/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_NUV_fuzzer-5753135536013312 > > Found-by: continuous fuzzing process > https://github.com/google/oss-fuzz/tree/master/projects/ffmpe

Re: [FFmpeg-devel] [PATCH v2 0/2] lavf/isom: support for demuxing MPEG-H 3D Audio in MP4

2019-11-05 Thread Carl Eugen Hoyos
Am Mi., 30. Okt. 2019 um 03:52 Uhr schrieb Yuki.Tsuchiya : > Here is the sample content of the MPEG-H 3D Audio. > https://www.filehosting.org/file/details/829625/mpeg-h_3d_audio_mhm1_sample.mp4 Does not work here, please use any other filehoster. Thank you, Carl Eugen ___

Re: [FFmpeg-devel] [PATCH v3 1/2] lavf/isom: support for demuxing MPEG-H 3D Audio in MP4

2019-11-05 Thread Carl Eugen Hoyos
Am Fr., 1. Nov. 2019 um 06:24 Uhr schrieb Yuki Tsuchiya : > > Implemented according to the specification at > https://www.iso.org/standard/69561.html > The "mhm1" sample entry is registered with MP4RA, which is defined as MHAS > encapsulated single stream MPEG-H 3D Audio. > "MHAS" stands for MPEG

Re: [FFmpeg-devel] [PATCH 5/5] avcodec/g729dec: Use 64bit and clip in scalar product

2019-11-05 Thread Carl Eugen Hoyos
Am Mi., 6. Nov. 2019 um 00:31 Uhr schrieb Michael Niedermayer : > > The G729 reference clips after each individual operation and keeps > track if overflow occurred (in the fixed point implementation) I believe this is missing the word "decoder". Carl Eugen

[FFmpeg-devel] [PATCH 2/5] avformat/vividas: Error out on audio packets in the absence of audio streams

2019-11-05 Thread Michael Niedermayer
Signed-off-by: Michael Niedermayer --- libavformat/vividas.c | 14 +- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/libavformat/vividas.c b/libavformat/vividas.c index e4255fd5cc..b804260b5d 100644 --- a/libavformat/vividas.c +++ b/libavformat/vividas.c @@ -52,6 +52,7

[FFmpeg-devel] [PATCH 5/5] avcodec/g729dec: Use 64bit and clip in scalar product

2019-11-05 Thread Michael Niedermayer
The G729 reference clips after each individual operation and keeps track if overflow occurred (in the fixed point implementation), this here is simpler and faster but not 1:1 the same what the reference does. Non fuzzed samples which trigger any such overflow are welcome, so the need and impact o

[FFmpeg-devel] [PATCH 3/5] avcodec/ffwavesynth: Fix integer overflow with pink_ts_cur/next

2019-11-05 Thread Michael Niedermayer
Fixes: signed integer overflow: 6175076100092079360 - -5034989061050195840 cannot be represented in type 'long' Fixes: 18614/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_FFWAVESYNTH_fuzzer-5704508847423488 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/

[FFmpeg-devel] [PATCH 4/5] avcodec/ralf: Fix integer overflows with the filter coefficient in decode_channel()

2019-11-05 Thread Michael Niedermayer
Fixes: signed integer overflow: 1145975808 - -1146173210 cannot be represented in type 'int' Fixes: 18616/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_RALF_fuzzer-5121296757424128 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off

[FFmpeg-devel] [PATCH 1/5] avformat/vividas: Check and require 1 video stream

2019-11-05 Thread Michael Niedermayer
The decoder hardcodes that audio is stream_id = 1 so it does not currently work with more or less than 1 video stream at st=0 Fixes: assertion failure Fixes: 18602/clusterfuzz-testcase-minimized-ffmpeg_DEMUXER_fuzzer-6259277199310848 Found-by: continuous fuzzing process https://github.com/googl

Re: [FFmpeg-devel] [PATCH 1/4] configure: select mdct for dca encoder

2019-11-05 Thread Carl Eugen Hoyos
Am Di., 5. Nov. 2019 um 20:36 Uhr schrieb Lou Logan : [...] Set lgtm. Thank you, Carl Eugen ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-

Re: [FFmpeg-devel] [PATCH v1 1/4] doc/bitstream_filters: Fix copy an paste typo

2019-11-05 Thread Michael Niedermayer
On Mon, Nov 04, 2019 at 07:09:59PM +0800, lance.lmw...@gmail.com wrote: > From: Limin Wang > > Signed-off-by: Limin Wang > --- > doc/bitstream_filters.texi | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/doc/bitstream_filters.texi b/doc/bitstream_filters.texi > index 5

Re: [FFmpeg-devel] [PATCH] avformat/nutenc: Do not pass NULL to memcmp() in get_needed_flags()

2019-11-05 Thread Michael Niedermayer
On Fri, Nov 01, 2019 at 01:33:43PM +0100, Michael Niedermayer wrote: > This compared to the other suggestions is cleaner and easier to understand > keeping the condition in the if() simple. > > This affects alot of fate tests. > > See: [FFmpeg-devel] [PATCH 05/11] avformat/nutenc: Don't pass NULL

[FFmpeg-devel] Add support to a PCM audio codec (Win)

2019-11-05 Thread cumdacon
Hi to all dev! FFmpeg on Windows32; request of full audio codec support pcm_s16be into a container MP4. LOG: [mp4 @ 00a5f840] Could not find tag for codec pcm_s16be in stream #1, codec not currently supported in container Could not write header for output file #0 (incorrect codec parameters ?):

[FFmpeg-devel] [PATCH 3/4] avcodec/Makefile: add missing h263data dependency to snow encoder

2019-11-05 Thread Lou Logan
Signed-off-by: Lou Logan --- Fixes: --disable-everything --enable-encoder=snow /usr/bin/ld: libavcodec/libavcodec.a(ituh263enc.o): in function `h263_get_motion_length': ituh263enc.c:(.text+0x487): undefined reference to `ff_mvtab' /usr/bin/ld: ituh263enc.c:(.text+0x4db): undefined reference to `f

[FFmpeg-devel] [PATCH 4/4] avcodec/Makefile: add missing msmpeg4* dependencies to wmv1 encoder

2019-11-05 Thread Lou Logan
Signed-off-by: Lou Logan --- Fixes: --disable-everything --enable-encoder=wmv1 /usr/bin/ld: libavcodec/libavcodec.a(msmpeg4enc.o): in function `ff_msmpeg4_encode_init': msmpeg4enc.c:(.text+0x627): undefined reference to `ff_msmpeg4_common_init' /usr/bin/ld: msmpeg4enc.c:(.text+0x671): undefined

[FFmpeg-devel] [PATCH 2/4] avcodec/Makefile: add missing vorbis_data dependency to opus encoder

2019-11-05 Thread Lou Logan
Signed-off-by: Lou Logan --- Fixes: --disable-everything --enable-encoder=opus /usr/bin/ld: libavcodec/libavcodec.a(dcaenc.o): in function `encode_init': dcaenc.c:(.text+0xeb9): undefined reference to `ff_mdct_init_fixed_32' /usr/bin/ld: libavcodec/libavcodec.a(dcaenc.o): in function `encode_close

[FFmpeg-devel] [PATCH 1/4] configure: select mdct for dca encoder

2019-11-05 Thread Lou Logan
Signed-off-by: Lou Logan --- Fixes: --disable-everything --enable-encoder=dca /usr/bin/ld: libavcodec/libavcodec.a(dcaenc.o): in function `encode_init': dcaenc.c:(.text+0xeb9): undefined reference to `ff_mdct_init_fixed_32' /usr/bin/ld: libavcodec/libavcodec.a(dcaenc.o): in function `encode_clos

Re: [FFmpeg-devel] [PATCH 1/8] configure: select mdct & sinewin for atrac3pal decoder

2019-11-05 Thread Lou Logan
On Mon, Nov 4, 2019, at 3:42 PM, Carl Eugen Hoyos wrote: > Am Di., 5. Nov. 2019 um 00:45 Uhr schrieb Lou Logan : > > [...] > > Set lgtm. Set pushed. ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Re: [FFmpeg-devel] [PATCH 1/1] avformat/mpegenc.c: vbvsize option

2019-11-05 Thread Hendrik Leppkes
On Tue, Nov 5, 2019 at 5:44 PM Gaullier Nicolas wrote: > > >>On Thu, Oct 31, 2019 at 06:04:58PM +0100, Nicolas Gaullier wrote: > >> Allow the user to set or override the vbv size > >> --- > >> libavformat/mpegenc.c | 6 +- > >> 1 file changed, 5 insertions(+), 1 deletion(-) > > > >This is not

Re: [FFmpeg-devel] [PATCH] avformat/movenc: Support for variable timescale in mov containers

2019-11-05 Thread Michael Niedermayer
On Mon, Nov 04, 2019 at 06:42:10PM +, Kevin Wheatley wrote: > This pair of patches work together to facilitate user specified timescales for > the Movie Header Atom 'mvhd', which allows constant sample table durations for > all frame rates. > > Currently there is a fixed timescale of 1000, whi

[FFmpeg-devel] [PATCH 1/1] avformat/mpegenc.c: vbvsize option

2019-11-05 Thread Gaullier Nicolas
>>On Thu, Oct 31, 2019 at 06:04:58PM +0100, Nicolas Gaullier wrote: >> Allow the user to set or override the vbv size >> --- >> libavformat/mpegenc.c | 6 +- >> 1 file changed, 5 insertions(+), 1 deletion(-) > >This is not the "correct" way to handle this, because one mpeg container >can conta

Re: [FFmpeg-devel] [PATCH] avutil/eval: add function to track variable use

2019-11-05 Thread Gyan
On 05-11-2019 07:40 pm, Nicolas George wrote: Gyan (12019-11-05): An example of a cross-referenced expression would be 'y=x+rand(10)'. Normally in filters, X would be evaluated first, then Y, then X again. The 2nd eval of X will overwrite the first and can generate a different value. With this

Re: [FFmpeg-devel] [PATCH v6 1/3] hevc_mp4toannexb: Insert correct parameter sets before IRAP

2019-11-05 Thread Andriy Gelman
On Wed, 30. Oct 09:45, Andriy Gelman wrote: > On Thu, 24. Oct 20:50, Andriy Gelman wrote: > > On Tue, 15. Oct 22:50, Andriy Gelman wrote: > > > From: Andriy Gelman > > > > > > Fixes #7799 > > > > > > Currently, the mp4toannexb filter always inserts the same extradata at > > > the start of the fi

Re: [FFmpeg-devel] [PATCH] avutil/eval: add function to track variable use

2019-11-05 Thread Nicolas George
Gyan (12019-11-05): > An example of a cross-referenced expression would be 'y=x+rand(10)'.  > Normally in filters, X would be evaluated first, then Y, then X again. The > 2nd eval of X will overwrite the first and can generate a different value. > With this func, we can avoid the 2nd eval. > > I'm

Re: [FFmpeg-devel] [PATCH 1/2] avcodec/get_bits: cosmetics

2019-11-05 Thread Michael Niedermayer
On Tue, Nov 05, 2019 at 11:13:49AM +0100, Ramiro Polla wrote: > --- > libavcodec/get_bits.h | 8 > 1 file changed, 4 insertions(+), 4 deletions(-) LGTM thx [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB Why not whip the teacher when the pupil misbeha

Re: [FFmpeg-devel] [PATCH 2/2] avcodec/wmadec: cosmetics

2019-11-05 Thread Michael Niedermayer
On Tue, Nov 05, 2019 at 11:13:50AM +0100, Ramiro Polla wrote: > --- > libavcodec/wmadec.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) LGTM thx [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB If you drop bombs on a foreign country and kill a hun

Re: [FFmpeg-devel] [PATCH] avutil/eval: add function to track variable use

2019-11-05 Thread Gyan
On 05-11-2019 03:55 pm, Michael Niedermayer wrote: On Tue, Nov 05, 2019 at 10:13:52AM +0530, Gyan wrote: On 05-11-2019 04:35 am, Michael Niedermayer wrote: On Sun, Nov 03, 2019 at 11:14:25AM +0530, Gyan wrote: Helps better identification of expr eval failures. Gyan eval.c| 21 +

Re: [FFmpeg-devel] [PATCH] avutil/eval: add function to track variable use

2019-11-05 Thread Michael Niedermayer
On Tue, Nov 05, 2019 at 10:13:52AM +0530, Gyan wrote: > > > On 05-11-2019 04:35 am, Michael Niedermayer wrote: > >On Sun, Nov 03, 2019 at 11:14:25AM +0530, Gyan wrote: > >>Helps better identification of expr eval failures. > >> > >>Gyan > >> eval.c| 21 + > >> eval.h

[FFmpeg-devel] [PATCH 1/2] avcodec/get_bits: cosmetics

2019-11-05 Thread Ramiro Polla
--- libavcodec/get_bits.h | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libavcodec/get_bits.h b/libavcodec/get_bits.h index c4ab607744..66fb877599 100644 --- a/libavcodec/get_bits.h +++ b/libavcodec/get_bits.h @@ -234,9 +234,9 @@ static inline void refill_32(GetBitCon

[FFmpeg-devel] [PATCH 2/2] avcodec/wmadec: cosmetics

2019-11-05 Thread Ramiro Polla
--- libavcodec/wmadec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavcodec/wmadec.c b/libavcodec/wmadec.c index 78b51e5871..e7886262f3 100644 --- a/libavcodec/wmadec.c +++ b/libavcodec/wmadec.c @@ -889,11 +889,11 @@ static int wma_decode_superframe(AVCodecContext *a

Re: [FFmpeg-devel] [PATCH] lavc/qsvenc: add the missing vp9 file

2019-11-05 Thread Fu, Linjie
> -Original Message- > From: ffmpeg-devel On Behalf Of > Dennis Mungai > Sent: Tuesday, November 5, 2019 13:04 > To: FFmpeg development discussions and patches de...@ffmpeg.org> > Cc: Zhong Li > Subject: Re: [FFmpeg-devel] [PATCH] lavc/qsvenc: add the missing vp9 file > > On Mon, 4 Nov