@@ -130,6 +130,31 @@ endif
130130
131131 sudo rm -f /usr/include/asm
132132
133+ mpeg_2_video_reference_decoder : # # build ISO MPEG2 video reference decoder
134+ ifeq ($(KERNEL_NAME ) , Linux)
135+ if ! dpkg -l | grep gcc-multilib -c >>/dev/null; then sudo apt-get install gcc-multilib; fi
136+ if ! dpkg -l | grep g++-multilib -c >>/dev/null; then sudo apt-get install g++-multilib; fi
137+ endif
138+ if [ ! $(wildcard /usr/include/asm) ] && [ $(wildcard /usr/include/asm-generic) ]; then sudo ln -s /usr/include/asm-generic /usr/include/asm; fi
139+
140+ ifeq ($(wildcard $(CONTRIB_DIR ) /C039486_Electronic_inserts) ,)
141+ $(create_dirs)
142+ cd $(CONTRIB_DIR) && rm -f iso_cookies.txt
143+ cd $(CONTRIB_DIR) && wget -qO- --keep-session-cookies --save-cookies iso_cookies.txt \
144+ 'https://standards.iso.org/ittf/PubliclyAvailableStandards/c039486_ISO_IEC_13818-5_2005_Reference_Software.zip' > /dev/null
145+ cd $(CONTRIB_DIR) && wget --keep-session-cookies --load-cookies iso_cookies.txt --post-data 'ok=I+accept' \
146+ 'https://standards.iso.org/ittf/PubliclyAvailableStandards/c039486_ISO_IEC_13818-5_2005_Reference_Software.zip'
147+ cd $(CONTRIB_DIR) && unzip -oq c039486_ISO_IEC_13818-5_2005_Reference_Software.zip
148+ cd $(CONTRIB_DIR) && rm -f iso_cookies.txt c039486_ISO_IEC_13818-5_2005_Reference_Software.zip ipmp.zip mpeg2audio.zip systems.zip mpeg2aac.zip
149+
150+ cd $(CONTRIB_DIR) && unzip -oq video.zip
151+ cd $(CONTRIB_DIR) && rm -f video.zip
152+ endif
153+ cd $(CONTRIB_DIR)/video/decoder && MAKELEVEL=0 $(MAKE) all
154+ find $(CONTRIB_DIR)/video/decoder -name "mpeg2decode" -type f -exec cp {} $(DECODERS_DIR) \;
155+
156+ sudo rm -f /usr/include/asm
157+
133158mpeg_4_aac_reference_decoder : # # build ISO MPEG4 AAC reference decoder
134159ifeq ($(KERNEL_NAME ) , Linux)
135160 if ! dpkg -l | grep gcc-multilib -c >>/dev/null; then sudo apt-get install gcc-multilib; fi
@@ -182,4 +207,4 @@ dbg-%:
182207 echo " Value of $* = $( $* ) "
183208
184209.PHONY : help all_reference_decoders h264_reference_decoder h265_reference_decoder h266_reference_decoder\
185- mpeg_4_aac_reference_decoder mpeg_2_aac_reference_decoder check install_deps clean
210+ mpeg_4_aac_reference_decoder mpeg_2_aac_reference_decoder mpeg_2_video_reference_decoder check install_deps clean
0 commit comments