Skip to content

Commit

Permalink
[muxerMp4] Allow MPEG-1 and MPEG-2 video
Browse files Browse the repository at this point in the history
  • Loading branch information
eumagga0x2a committed Sep 6, 2020
1 parent 60843bb commit 2df4d1e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions avidemux_plugins/ADM_muxers/muxerMp4/muxerMP4.cpp
Expand Up @@ -84,7 +84,8 @@ bool MOVCLASS::open(const char *file, ADM_videoStream *s, uint32_t nbAudioTrack,
{
#define FCC_IS_NOT(x) !fourCC::check(fcc,(const uint8_t *)x)
uint32_t fcc=s->getFCC();
if( !isMpeg4Compatible(fcc) &&
if( !isMpeg12Compatible(fcc) &&
!isMpeg4Compatible(fcc) &&
!isH264Compatible(fcc) &&
!isH265Compatible(fcc) &&
#ifdef MUXER_IS_MOV
Expand All @@ -100,11 +101,11 @@ bool MOVCLASS::open(const char *file, ADM_videoStream *s, uint32_t nbAudioTrack,
#ifdef MUXER_IS_MOV
GUI_Error_HIG(
QT_TRANSLATE_NOOP("mp4muxer","Unsupported"),
QT_TRANSLATE_NOOP("mp4muxer","Only MP4Video, H264, H265, AV1, DNxHD and ProRes supported for video"));
QT_TRANSLATE_NOOP("mp4muxer","Only MPEG-1/2/4, H264, H265, AV1, DNxHD and ProRes supported for video"));
#else
GUI_Error_HIG(
QT_TRANSLATE_NOOP("mp4muxer","Unsupported"),
QT_TRANSLATE_NOOP("mp4muxer","Only MP4Video, H264, H265 and AV1 supported for video"));
QT_TRANSLATE_NOOP("mp4muxer","Only MPEG-1/2/4, H264, H265 and AV1 supported for video"));
#endif
return false;
}
Expand Down

0 comments on commit 2df4d1e

Please sign in to comment.