diff -r 31b9a4c9ad97 src/AVHandler.cc --- a/src/AVHandler.cc Tue Sep 03 07:50:42 2013 -0400 +++ b/src/AVHandler.cc Tue Sep 15 16:04:56 2015 +0530 @@ -120,19 +120,12 @@ if (add_video_stream() != 0) return -1; } - /* av_set_parameters is mandatory */ - // FIXME: deprecated, but there's no replacement yet - if (av_set_parameters(av_output, NULL) < 0) { - (*out) << "AVHandler: Error setting output format parameters" << std::endl; - return -1; - } - snprintf(av_output->filename, sizeof(av_output->filename), "%s", filename.c_str()); // FIXME: snprintf(av_output->title, sizeof(av_output->title), "%s", title.c_str()); // FIXME: snprintf(av_output->author, sizeof(av_output->author), "%s", author.c_str()); // FIXME: snprintf(av_output->comment, sizeof(av_output->comment), "%s", comment.c_str()); - if (avio_open(&av_output->pb, filename.c_str(), URL_WRONLY) < 0) { + if (avio_open(&av_output->pb, filename.c_str(), AVIO_FLAG_WRITE) < 0) { (*out) << "AVHandler: Could not open \"" << filename << "\" for output" << std::endl; return -1; } @@ -383,7 +376,7 @@ AVCodec *codec; for (codec = av_codec_next(0); codec != NULL; codec = av_codec_next(codec)) { if ((codec->type == AVMEDIA_TYPE_VIDEO) && - (codec->encode)) { + (av_codec_is_encoder(codec))) { (*out) << codec->name << " "; } } diff -r 31b9a4c9ad97 src/oct-avifile.cc --- a/src/oct-avifile.cc Tue Sep 03 07:50:42 2013 -0400 +++ b/src/oct-avifile.cc Tue Sep 15 16:04:56 2015 +0530 @@ -26,9 +26,6 @@ #include #include "oct-avifile.h" -DEFINE_OCTAVE_ALLOCATOR(Avifile); -DEFINE_OV_TYPEID_FUNCTIONS_AND_DATA(Avifile, "avifile", "avifile"); - Avifile::Avifile(std::string fn) : octave_base_value(), filename(fn), frames(0), frame_rows(0), frame_columns(0) { diff -r 31b9a4c9ad97 src/oct-avifile.h --- a/src/oct-avifile.h Tue Sep 03 07:50:42 2013 -0400 +++ b/src/oct-avifile.h Tue Sep 15 16:04:56 2015 +0530 @@ -56,8 +56,5 @@ unsigned int frames; unsigned int frame_rows; unsigned int frame_columns; - - DECLARE_OCTAVE_ALLOCATOR - DECLARE_OV_TYPEID_FUNCTIONS_AND_DATA }; #endif