Skip to content

Commit

Permalink
differentiate mp1v from mp2v and default mpgv to mp2v
Browse files Browse the repository at this point in the history
Fixes #5864

Signed-off-by: Ilkka Ollakka <[email protected]>
  • Loading branch information
ilkka-ollakka committed Feb 15, 2014
1 parent dc05b32 commit cecf9be
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
3 changes: 2 additions & 1 deletion modules/codec/avcodec/fourcc.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,9 @@ static const struct
* Video Codecs
*/

{ VLC_CODEC_MP2V, AV_CODEC_ID_MPEG2VIDEO, VIDEO_ES }, /* prefer MPEG2 over MPEG1 */
{ VLC_CODEC_MPGV, AV_CODEC_ID_MPEG2VIDEO, VIDEO_ES }, /* prefer MPEG2 over MPEG1 */
{ VLC_CODEC_MPGV, AV_CODEC_ID_MPEG1VIDEO, VIDEO_ES },
{ VLC_CODEC_MP1V, AV_CODEC_ID_MPEG1VIDEO, VIDEO_ES },
/* AV_CODEC_ID_MPEG2VIDEO_XVMC */
{ VLC_CODEC_H261, AV_CODEC_ID_H261, VIDEO_ES },
{ VLC_CODEC_H263, AV_CODEC_ID_H263, VIDEO_ES },
Expand Down
8 changes: 5 additions & 3 deletions src/misc/fourcc.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,13 @@ typedef struct
/* */
static const staticentry_t p_list_video[] = {

B(VLC_CODEC_MPGV, "MPEG-1/2 Video"),
A("mpgv"),
B(VLC_CODEC_MP1V, "MPEG-1 Video"),
A("mp1v"),
A("mpeg"),
A("mpg1"),

B(VLC_CODEC_MP2V, "MPEG-2 Video"),
A("mpgv"),
A("mpeg"),
A("mp2v"),
A("MPEG"),
A("mpg2"),
Expand Down

0 comments on commit cecf9be

Please sign in to comment.