Initialize global pointers in examples.
authorRalph Giles <giles@thaumas.net>
Mon, 28 Nov 2016 14:06:56 +0000 (14:06 +0000)
committerRalph Giles <giles@thaumas.net>
Mon, 28 Nov 2016 21:28:31 +0000 (13:28 -0800)
commit91203fdfdc0eb06cd87409d47e35d9ee5471a90f
treef3593a4238f46a30c9ceb61b792dd25e44af6945
parent4bd78cd745e9255c96c7225831b497993f28175e
Initialize global pointers in examples.

Global pointers are initialized to zero in C, but not in C++.

Add an explicit initializer to reduce confusion and avoid
bugs when the example code is copied into C++ applications.

Based on a patch by Alex Houghton <houghton1411@aol.com>.
examples/dump_video.c
examples/player_example.c
examples/png2theora.c
examples/tiff2theora.c