New submission from Robert Leatherwood <robert.leatherw...@earthlink.net>:

I am trying to compile the latest SVN of ffmpeg and I am receiving the following
error:

CC      libavcodec/h264dspenc.o
libavcodec/h264dspenc.c:75: warning: no previous prototype for  
‘ff_h264dspenc_init’
libavcodec/h264dspenc.c: In function ‘ff_h264dspenc_init’:
libavcodec/h264dspenc.c:76: error: ‘struct DSPContext’ has no member  
named ‘h264_dct’
make: *** [libavcodec/h264dspenc.o] Error 1

I did some further investigation and it looks to me that maybe this function was
missed when mru split the H264 specific functions from DSPContext into
H264DSPContext back in SVN 22565. I created the patch below to fix the compile
error. Someone may wish to review to see if this is correct.

Thanks,
Robert

====PATCH====

Index: libavcodec/h264dspenc.c
===================================================================
--- libavcodec/h264dspenc.c     (revision 22575)
+++ libavcodec/h264dspenc.c     (working copy)
@@ -26,7 +26,7 @@
   *
   */

-#include "dsputil.h"
+#include "h264dsp.h"

  #define  H264_DCT_PART1(X) \
           a = block[0][X]+block[3][X]; \
@@ -71,7 +71,7 @@
      H264_DCT_PART2(3);
  }

-av_cold void ff_h264dspenc_init(DSPContext* c, AVCodecContext *avctx)
+av_cold void ff_h264dspenc_init(H264DSPContext* c, AVCodecContext  
*avctx)
  {
      c->h264_dct = h264_dct_c;
  }

----------
messages: 10213
priority: normal
status: new
substatus: new
title: h264dspenc compile error
type: patch

________________________________________________
FFmpeg issue tracker <iss...@roundup.ffmpeg.org>
<https://roundup.ffmpeg.org/issue1896>
________________________________________________

Reply via email to