aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefano Sabatini2011-04-28 01:42:56 +0200
committerReinhard Tartler2011-04-28 11:07:31 +0200
commit62d33dbc170f41189c1ec775bc24e561b2e0aff5 (patch)
tree675e6f542078affc2071bed5c48203671e716773
parentf2c85458c411447f006f9c928cb198ec0260255a (diff)
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>
-rw-r--r--libavcodec/mpeg12.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/mpeg12.c b/libavcodec/mpeg12.c
index 02d3e6602a..cca539f474 100644
--- a/libavcodec/mpeg12.c
+++ b/libavcodec/mpeg12.c
@@ -2488,6 +2488,7 @@ static const AVProfile mpeg2_video_profiles[] = {
{ FF_PROFILE_MPEG2_SIMPLE, "Simple" },
{ FF_PROFILE_RESERVED, "Reserved" },
{ FF_PROFILE_RESERVED, "Reserved" },
+ { FF_PROFILE_UNKNOWN },
};