History

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.

Stefano Sabatini committed 15 years ago

Commit e5d80c71 parent 058aabd1 file · +1 −0Browse files

Unified · Split

libavcodec/mpeg12.c+1−0
@@ -2566,6 +2566,7 @@ static const AVProfile mpeg2_video_profiles[] = { · 2565 unmodified lines
25662566 { FF_PROFILE_MPEG2_SIMPLE, "Simple" },
25672567 { FF_PROFILE_RESERVED, "Reserved" },
25682568 { FF_PROFILE_RESERVED, "Reserved" },
2569+ { FF_PROFILE_UNKNOWN },
25692570 };
25702571
25712572

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t