diff options
| author | Carl Hetherington <cth@carlh.net> | 2012-07-20 02:56:57 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2012-07-20 02:56:57 +0100 |
| commit | b6dc9aed0dcb5928d0f34e5db68b0c98b48c6b6e (patch) | |
| tree | ddc39186b8df378bf62d827ebc19be92e9345cd5 /src/lib/decoder.cc | |
| parent | 2525b527f279a130155d40b7ee57057897270915 (diff) | |
Try to fix up build with newer ffmpeg.
Diffstat (limited to 'src/lib/decoder.cc')
| -rw-r--r-- | src/lib/decoder.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/decoder.cc b/src/lib/decoder.cc index df3a4dda6..fd7992feb 100644 --- a/src/lib/decoder.cc +++ b/src/lib/decoder.cc @@ -26,6 +26,10 @@ extern "C" { #include <libavfilter/avfiltergraph.h> #include <libavfilter/vsrc_buffer.h> +#ifndef DVDOMATIC_FFMPEG_0_8_3 +#include <libavfilter/avcodec.h> +#include <libavfilter/buffersink.h> +#endif #include <libavformat/avio.h> } #include "film.h" @@ -231,7 +235,7 @@ Decoder::process_video (AVFrame* frame) #else AVFilterBufferRef* filter_buffer; - if (avbuffersink_get_buffer_ref (_buffer_sink_context, &filter_buffer, 0) < 0) { + if (av_buffersink_get_buffer_ref (_buffer_sink_context, &filter_buffer, 0) < 0) { filter_buffer = 0; } |
