Re: [FFmpeg-devel] [PATCH] Use AVOnce as a static variable consistently

2017-05-22 Thread Steven Liu
2017-05-22 18:06 GMT+08:00 Hendrik Leppkes : > Using AVOnce as a stack variable makes no sense as the state is lost > when the function exists. > > This fixes repeated calls to av(filter/device)_register_all > --- > libavdevice/alldevices.c | 2 +- > libavfilter/allfilters.c

Re: [FFmpeg-devel] [PATCH] Use AVOnce as a static variable consistently

2017-05-22 Thread Hendrik Leppkes
On Mon, May 22, 2017 at 12:25 PM, wm4 wrote: > On Mon, 22 May 2017 12:06:19 +0200 > Hendrik Leppkes wrote: > >> Using AVOnce as a stack variable makes no sense as the state is lost >> when the function exists. >> >> This fixes repeated calls to

Re: [FFmpeg-devel] [PATCH] Use AVOnce as a static variable consistently

2017-05-22 Thread wm4
On Mon, 22 May 2017 12:06:19 +0200 Hendrik Leppkes wrote: > Using AVOnce as a stack variable makes no sense as the state is lost > when the function exists. > > This fixes repeated calls to av(filter/device)_register_all > --- > libavdevice/alldevices.c | 2 +- >

[FFmpeg-devel] [PATCH] Use AVOnce as a static variable consistently

2017-05-22 Thread Hendrik Leppkes
Using AVOnce as a stack variable makes no sense as the state is lost when the function exists. This fixes repeated calls to av(filter/device)_register_all --- libavdevice/alldevices.c | 2 +- libavfilter/allfilters.c | 2 +- libavformat/allformats.c | 2 +- 3 files changed, 3 insertions(+), 3