summaryrefslogtreecommitdiffstats
path: root/libavcodec/mpeg12.c
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2011-04-28 01:42:56 +0200
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2011-04-28 01:45:19 +0200
commite5d80c7b2d893422e2e60a97e08bfc48ca1684e6 (patch)
tree42f672b6f7bf30530433589d278819992a5bd8cb /libavcodec/mpeg12.c
parent058aabd4757ff800422412c908a408da4b4cf514 (diff)
downloadffmpeg-streaming-e5d80c7b2d893422e2e60a97e08bfc48ca1684e6.zip
ffmpeg-streaming-e5d80c7b2d893422e2e60a97e08bfc48ca1684e6.tar.gz
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.
Diffstat (limited to 'libavcodec/mpeg12.c')
-rw-r--r--libavcodec/mpeg12.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/mpeg12.c b/libavcodec/mpeg12.c
index 510a2b0..34958a7 100644
--- a/libavcodec/mpeg12.c
+++ b/libavcodec/mpeg12.c
@@ -2566,6 +2566,7 @@ static const AVProfile mpeg2_video_profiles[] = {
{ FF_PROFILE_MPEG2_SIMPLE, "Simple" },
{ FF_PROFILE_RESERVED, "Reserved" },
{ FF_PROFILE_RESERVED, "Reserved" },
+ { FF_PROFILE_UNKNOWN },
};
OpenPOWER on IntegriCloud