<commit_before>Index: ffmpeg/libavcodec/i386/dsputil_h264_template_mmx.c
===================================================================
--- ffmpeg/libavcodec/i386/dsputil_h264_template_mmx.c	(revision 14508)
+++ ffmpeg/libavcodec/i386/dsputil_h264_template_mmx.c	(working copy)
@@ -185,8 +185,12 @@
     }
 }
 
+extern void H264_CHROMA_MC4_C(uint8_t *dst/*align 4*/, uint8_t *src/*align 1*/, int stride, int h, int x, int y);
+
 static void H264_CHROMA_MC4_TMPL(uint8_t *dst/*align 4*/, uint8_t *src/*align 1*/, int stride, int h, int x, int y)
 {
+	if (!(x*y)) {H264_CHROMA_MC4_C(dst, src, stride, h, x, y); return;}
+
     asm volatile(
         "pxor   %%mm7, %%mm7        \n\t"
         "movd %5, %%mm2             \n\t"
Index: ffmpeg/libavcodec/i386/dsputil_mmx.c<commit_msg>Corrected patch so it applies<commit_after>Index: ffmpeg/libavcodec/i386/dsputil_h264_template_mmx.c
===================================================================
--- ffmpeg/libavcodec/i386/dsputil_h264_template_mmx.c	(revision 15692)
+++ ffmpeg/libavcodec/i386/dsputil_h264_template_mmx.c	(working copy)
@@ -185,8 +185,12 @@
     }
 }
 
+extern void H264_CHROMA_MC4_C(uint8_t *dst/*align 4*/, uint8_t *src/*align 1*/, int stride, int h, int x, int y);
+
 static void H264_CHROMA_MC4_TMPL(uint8_t *dst/*align 4*/, uint8_t *src/*align 1*/, int stride, int h, int x, int y)
 {
+	if (!(x*y)) {H264_CHROMA_MC4_C(dst, src, stride, h, x, y); return;}
+	
     __asm__ volatile(
         "pxor   %%mm7, %%mm7        \n\t"
         "movd %5, %%mm2             \n\t"
Index: ffmpeg/libavcodec/i386/dsputil_mmx.c
{'fraction_non_alphanumeric': 0.23004399748585794, 'fraction_numerical': 0.07416719044626022, 'mean_word_length': 3.9135802469135803, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4635100', 'n_tokens_mistral': 743, 'n_tokens_neox': 656, 'n_words': 129}