Skip to content
Snippets Groups Projects
Commit 62d33dbc authored by Stefano Sabatini's avatar Stefano Sabatini Committed by Reinhard Tartler
Browse files

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

Signed-off-by: default avatarRonald S. Bultje <rsbultje@gmail.com>
parent f2c85458
No related branches found
No related tags found
No related merge requests found
...@@ -2488,6 +2488,7 @@ static const AVProfile mpeg2_video_profiles[] = { ...@@ -2488,6 +2488,7 @@ static const AVProfile mpeg2_video_profiles[] = {
{ FF_PROFILE_MPEG2_SIMPLE, "Simple" }, { FF_PROFILE_MPEG2_SIMPLE, "Simple" },
{ FF_PROFILE_RESERVED, "Reserved" }, { FF_PROFILE_RESERVED, "Reserved" },
{ FF_PROFILE_RESERVED, "Reserved" }, { FF_PROFILE_RESERVED, "Reserved" },
{ FF_PROFILE_UNKNOWN },
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment