mpeg12: terminate mpeg2_video_profiles arrays
authorStefano Sabatini <stefano.sabatini-lala@poste.it>
Wed, 27 Apr 2011 23:42:56 +0000 (01:42 +0200)
committerReinhard Tartler <siretart@tauware.de>
Thu, 28 Apr 2011 09:07:31 +0000 (11:07 +0200)
commit62d33dbc170f41189c1ec775bc24e561b2e0aff5
tree675e6f542078affc2071bed5c48203671e716773
parentf2c85458c411447f006f9c928cb198ec0260255a
mpeg12: terminate mpeg2_video_profiles arrays

Make av_get_profile_name() return NULL if no profile is detected.

Fix trac issue #130, fix crash reading file tek3.m2v.
(cherry picked from commit e5d80c7b2d893422e2e60a97e08bfc48ca1684e6)

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
libavcodec/mpeg12.c