summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorAndreas Brachold <vdr07@deltab.de>2009-04-13 09:47:34 +0000
committerAndreas Brachold <vdr07@deltab.de>2009-04-13 09:47:34 +0000
commit1f7ff5d00b83cbeb0afee85042d60aa2e60dbdd0 (patch)
tree3975ef6736a56b9ff3730777623e79790540c110 /contrib
parentfff09fadc1cc79c0a84bc4119ce940eea1ba583f (diff)
downloadxxv-1f7ff5d00b83cbeb0afee85042d60aa2e60dbdd0.tar.gz
xxv-1f7ff5d00b83cbeb0afee85042d60aa2e60dbdd0.tar.bz2
* adapt for ffmpeg-0.5
Diffstat (limited to 'contrib')
-rw-r--r--contrib/vdr2jpeg/Makefile6
-rw-r--r--contrib/vdr2jpeg/ffm.cpp4
2 files changed, 6 insertions, 4 deletions
diff --git a/contrib/vdr2jpeg/Makefile b/contrib/vdr2jpeg/Makefile
index d62819b..14cf9ec 100644
--- a/contrib/vdr2jpeg/Makefile
+++ b/contrib/vdr2jpeg/Makefile
@@ -34,9 +34,11 @@ TMPDIR = /tmp
# there none user configurable options below this point
#
################################################################################
-
+ifdef DESTDIR
INSTALLDIR = $(DESTDIR)/$(INSTALLBINDIR)
-
+else
+INSTALLDIR = $(INSTALLBINDIR)
+endif
################################################################################
# Compiler/linker settings
CXX ?= g++
diff --git a/contrib/vdr2jpeg/ffm.cpp b/contrib/vdr2jpeg/ffm.cpp
index d52cf36..66b76bf 100644
--- a/contrib/vdr2jpeg/ffm.cpp
+++ b/contrib/vdr2jpeg/ffm.cpp
@@ -957,7 +957,7 @@ static bool opt_input_file(const char *filename)
int64_t timestamp;
/* get default parameters from command line */
- ic = av_alloc_format_context();
+ ic = avformat_alloc_context();
memset(ap, 0, sizeof(*ap));
ap->prealloced_context = 1;
@@ -1200,7 +1200,7 @@ static bool opt_output_file(const char *filename)
int use_video, input_has_video = 0;
AVFormatParameters params, *ap = &params;
- oc = av_alloc_format_context();
+ oc = avformat_alloc_context();
if (!file_oformat) {
file_oformat = guess_format(NULL, filename, NULL);