[FFmpeg-devel] [PATCH] lavd/avdevice: fix buildbreak when included to C++ code
Lukasz Marek
lukasz.m.luki2 at gmail.com
Sat Apr 12 21:16:19 CEST 2014
class is reserved keyword in C++ and compilator complains about that variable
Signed-off-by: Lukasz Marek <lukasz.m.luki2 at gmail.com>
---
libavdevice/avdevice.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavdevice/avdevice.h b/libavdevice/avdevice.h
index 1d9de91..f7364dc 100644
--- a/libavdevice/avdevice.h
+++ b/libavdevice/avdevice.h
@@ -344,7 +344,7 @@ int avdevice_dev_to_app_control_message(struct AVFormatContext *s,
* to implement capabilities probing API based on AVOption API. Should not be used directly.
*/
typedef struct AVDeviceCapabilitiesQuery {
- const AVClass *class;
+ const AVClass *priv_class;
AVFormatContext *device_context;
enum AVCodecID codec;
enum AVSampleFormat sample_format;
--
1.8.3.2
More information about the ffmpeg-devel
mailing list