struct AVFormatContext;
struct AVFrame;
struct AVInputFormat;
-
+struct SwsContext;
// AVFormatContext
struct avformat_close_input_unique {
AVFrameWithDeleter av_frame_alloc_unique();
+// SwsContext
+struct sws_free_context_unique {
+ void operator() (SwsContext *context) const;
+};
+
+typedef std::unique_ptr<SwsContext, sws_free_context_unique>
+ SwsContextWithDeleter;
+
#endif // !defined(_FFMPEG_RAII_H)