lib/ffmpeg/{Buffer,Time}: remove obsolete "#undef SampleFormat"

This compatibility macro has been removed from FFmpeg long ago.
This commit is contained in:
Max Kellermann 2020-11-04 19:50:21 +01:00
parent 84f772357e
commit 9332527872
2 changed files with 0 additions and 10 deletions

View File

@ -26,11 +26,6 @@ extern "C" {
#include <cstddef>
/* suppress the ffmpeg compatibility macro */
#ifdef SampleFormat
#undef SampleFormat
#endif
class FfmpegBuffer {
void *data;
unsigned size;

View File

@ -31,11 +31,6 @@ extern "C" {
#include <cassert>
#include <cstdint>
/* suppress the ffmpeg compatibility macro */
#ifdef SampleFormat
#undef SampleFormat
#endif
/* redefine AV_TIME_BASE_Q because libavutil's macro definition is a
compound literal, which is illegal in C++ */
#ifdef AV_TIME_BASE_Q