Ticket #47189: FFMpegh_build_against_ffmpeg.diff

File FFMpegh_build_against_ffmpeg.diff, 1.5 KB (added by RJVB (René Bertin), 8 years ago)
  • src/FFmpeg.h

    a b  
    685685      (AVFormatContext *s, AVDictionary **options),
    686686      (s, options)
    687687   );
     688#if defined(IS_FFMPEG_PROJECT)
     689   FFMPEG_FUNCTION_WITH_RETURN(
     690      AVOutputFormat*,
     691      av_oformat_next,
     692      (const AVOutputFormat *f),
     693      (f)
     694   );
     695#else
    688696   FFMPEG_FUNCTION_WITH_RETURN(
    689697      AVOutputFormat*,
    690698      av_oformat_next,
    691699      (AVOutputFormat *f),
    692700      (f)
    693701   );
     702#endif
    694703   FFMPEG_FUNCTION_WITH_RETURN(
    695704      AVCodec*,
    696705      av_codec_next,
     
    752761      (AVFifoBuffer *f),
    753762      (f)
    754763   );
     764#if defined(IS_FFMPEG_PROJECT)
     765   FFMPEG_FUNCTION_WITH_RETURN(
     766      int,
     767      av_fifo_size,
     768      (const AVFifoBuffer *f),
     769      (f)
     770   );
     771#else
    755772   FFMPEG_FUNCTION_WITH_RETURN(
    756773      int,
    757774      av_fifo_size,
    758775      (AVFifoBuffer *f),
    759776      (f)
    760777   );
     778#endif
    761779   FFMPEG_FUNCTION_WITH_RETURN(
    762780      void*,
    763781      av_malloc,
     
    798816      (AVFifoBuffer *f, unsigned int size),
    799817      (f, size)
    800818   );
     819#if defined(IS_FFMPEG_PROJECT)
     820   FFMPEG_FUNCTION_WITH_RETURN(
     821      AVDictionaryEntry *,
     822      av_dict_get,
     823      (const AVDictionary *m, const char *key, const AVDictionaryEntry *prev, int flags),
     824      (m, key, prev, flags)
     825   );
     826#else
    801827   FFMPEG_FUNCTION_WITH_RETURN(
    802828      AVDictionaryEntry *,
    803829      av_dict_get,
    804830      (AVDictionary *m, const char *key, const AVDictionaryEntry *prev, int flags),
    805831      (m, key, prev, flags)
    806832   );
     833#endif
    807834   FFMPEG_FUNCTION_WITH_RETURN(
    808835      int,
    809836      av_dict_set,