Index: media/ffmpeg/ffmpeg_common.h |
diff --git a/media/ffmpeg/ffmpeg_common.h b/media/ffmpeg/ffmpeg_common.h |
index 07daae1ed96ccf12c0067963e064e431c2ca957f..5ac0607b48267705b0d74e1f5049515b9fe4a723 100644 |
--- a/media/ffmpeg/ffmpeg_common.h |
+++ b/media/ffmpeg/ffmpeg_common.h |
@@ -109,6 +109,10 @@ bool GetStreamByteCountOverRange(AVStream* stream, |
int GetSurfaceHeight(AVStream* stream); |
int GetSurfaceWidth(AVStream* stream); |
+// Closes & destroys all AVStreams in the context and then closes & |
+// destroys the AVFormatContext. |
+void DestroyAVFormatContext(AVFormatContext* format_context); |
+ |
} // namespace media |
#endif // MEDIA_FFMPEG_FFMPEG_COMMON_H_ |