sourcey / libsourcey

C++14 evented IO libraries for high performance networking and media based applications
https://sourcey.com/libsourcey
GNU Lesser General Public License v2.1
1.31k stars 347 forks source link

Error during libsourcey compile with audioencoder example #225

Open videodoctor opened 6 years ago

videodoctor commented 6 years ago

I've compiled the latest version of FFmpeg on an Ubuntu 16.x distro, and I'm encountering a compile error during make with the audioencoder.cpp code. Aside from a bunch of deprecation warnings, there's this error:

/tmp/libsourcey/src/av/src/audioencoder.cpp:137:23: error: ‘CODEC_FLAG_GLOBAL_HEADER’ was not declared in this scope ctx->flags |= CODEC_FLAG_GLOBAL_HEADER;

Any thoughts?

videodoctor commented 6 years ago

I was able to update the audioencoder.cpp and videoencoder.cpp to see if AV_CODEC_FLAG_GLOBAL_HEADER is defined (or not). Seems newer versions of ffmpeg don't use CODEC_FLAG_GLOBAL_HEADER constant anymore.

auscaster commented 6 years ago

Thanks for this, a workaround will be added soon.

arkadiuk commented 6 years ago

I have same problem. What else can be done to bypass this error ? Is there any chance of getting older ffmpeg version on 16.x distro ? Thanks in advance.

mgyong commented 5 years ago

@auscaster Was the workaround added for this issue? I am facing the same issue

snarb commented 5 years ago

The same problem. Can't compile