diff --git a/BUILD.gn b/BUILD.gn index 281c8f2bad..58e071afbe 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -1305,7 +1305,7 @@ ohos_source_set("ffmpeg_dynamic") { "//third_party/ffmpeg/libavformat/mpegts.c", "//third_party/ffmpeg/libavformat/mpegtsenc.c", - # "//third_party/ffmpeg/libavformat/mpegvideodec.c", + "//third_party/ffmpeg/libavformat/mpegvideodec.c", # "//third_party/ffmpeg/libavformat/mpjpeg.c", # "//third_party/ffmpeg/libavformat/mpjpegdec.c", # "//third_party/ffmpeg/libavformat/mpl2dec.c", diff --git a/ohos_config.sh b/ohos_config.sh index af2af2e082..664e5cf6c8 100755 --- a/ohos_config.sh +++ b/ohos_config.sh @@ -50,7 +50,7 @@ FF_CONFIG_OPTIONS=" --disable-bzlib --disable-lzma --disable-vulkan - --enable-demuxer=mp3,aac,ape,flac,ogg,wav,mov,mpegts,amr,amrnb,amrwb,matroska,flv,mpegps,asf,asf_o,srt,h264,webvtt,av3a,avi + --enable-demuxer=mp3,aac,ape,flac,ogg,wav,mov,mpegts,amr,amrnb,amrwb,matroska,flv,mpegps,asf,asf_o,srt,h264,webvtt,av3a,avi,mpegvideo --enable-muxer=mp4,h264,ipod,amr,mpegts,mp3,wav,flac,av3a --enable-parser=h263,h264,mpeg4video,vp8,vp9,mpegvideo --enable-parser=mpegaudio,aac,aac_latm,av3a,amr,opus @@ -144,7 +144,7 @@ FF_CONFIG_OPTIONS=" --disable-sdl2 --disable-bzlib --disable-lzma - --enable-demuxer=mp3,aac,ape,flac,ogg,wav,mov,mpegts,amr,amrnb,amrwb,matroska,flv,mpegps,asf,asf_o,srt,h264,webvtt,av3a,avi + --enable-demuxer=mp3,aac,ape,flac,ogg,wav,mov,mpegts,amr,amrnb,amrwb,matroska,flv,mpegps,asf,asf_o,srt,h264,webvtt,av3a,avi,mpegvideo --enable-muxer=mp4,h264,ipod,amr,mpegts,mp3,wav,flac,av3a --enable-parser=h263,h264,mpeg4video,vp8,vp9,mpegvideo --enable-parser=mpegaudio,aac,aac_latm,av3a,amr,opus