diff options
| -rw-r--r-- | contrib/vdr2jpeg/Makefile | 6 | ||||
| -rw-r--r-- | contrib/vdr2jpeg/ffm.cpp | 4 |
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 = ¶ms; - oc = av_alloc_format_context(); + oc = avformat_alloc_context(); if (!file_oformat) { file_oformat = guess_format(NULL, filename, NULL); |
