OSDN Git Service

Use AVOnce as a static variable consistently
authorHendrik Leppkes <h.leppkes@gmail.com>
Mon, 22 May 2017 10:00:23 +0000 (12:00 +0200)
committerHendrik Leppkes <h.leppkes@gmail.com>
Mon, 22 May 2017 10:36:32 +0000 (12:36 +0200)
commit9fb293cfd8b758b98f1f535a2867c7bf3a324af6
tree5ae8bd17dbccd90cdfbdeeabf893d92e1369d077
parent49d0678181af67455dfd23b98ab3857db1b68e67
Use AVOnce as a static variable consistently

Using AVOnce as a stack variable makes no sense as the state is lost
when the function exits.

This fixes repeated calls to av(filter/device)_register_all
libavdevice/alldevices.c
libavfilter/allfilters.c
libavformat/allformats.c