I was puzzled by this https://github.com/cinelerra-cv-team/cincv-exp-akirad-paolo/commits/master/c... at very start it says r413: Add a wrapper class for ffmpeg/libavcodec routines, with examples of use in fileyuv. Still in progress, but works for what it does so far. author: nkurz on Sep 7, 2004 I *guees* nkruz = nate=Nathan Kurz <[email protected]> from CinelerraCV AUTHORS we can see familiar #include <string.h> #include "filebase.h" #include "quicktime.h" #include "ffmpeg.h" #include "guicast.h" FFMPEG::FFMPEG(Asset *asset) { this->asset = asset; codec = 0; context = 0; picture = 0; got_picture = 0; } int FFMPEG::init(char *codec_string) { avcodec_init(); avcodec_register_all(); compare with code merged by William ===== @@ -0,0 +1,393 @@ +#include <string.h> + +#define HAVE_SWSCALER + +#ifdef HAVE_SWSCALER +extern "C" { +#include "libswscale/swscale.h" +} +#endif + + +#include "filebase.h" +#include "quicktime.h" +#include "ffmpeg.h" +#include "guicast.h" + + +FFMPEG::FFMPEG(Asset *asset) { + this->asset = asset; + codec = 0; + context = 0; + picture = 0; + got_picture = 0; +} + +int FFMPEG::init(char *codec_string) { + + avcodec_init(); + avcodec_register_all(); + + CodecID id = codec_id(codec_string); + codec = avcodec_find_decoder(id); + if (codec == NULL) { + printf("FFMPEG::init no decoder for '%s'", codec_string); + return 1; + } + + context = avcodec_alloc_context(); + + if (avcodec_open(context, codec)) { + printf("FFMPEG::init avcodec_open() failed\n"); + } + + picture = avcodec_alloc_frame(); + + + return 0; +} so I think we can relatively accurately conclude ffmpeg.C comes from cinCV development tree. So, I think, license header for this specific file should include all contributors listed in github history Paolo Rampino xiphmont = Monty Montgomery petterreinholdtsen (I think he still around! http://people.skolelinux.org/pere/blog/) Simeon Voelkel Plus, of course, William!
participants (1)
-
Andrew Randrianasulu