Browse Source

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 e5d80c7b2d)

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
tags/n0.8
Stefano Sabatini Reinhard Tartler 14 years ago
parent
commit
62d33dbc17
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      libavcodec/mpeg12.c

+ 1
- 0
libavcodec/mpeg12.c View File

@@ -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 },
};




Loading…
Cancel
Save