Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'output_example.c')
-rw-r--r--output_example.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/output_example.c b/output_example.c
index 2fba8fc6a8..45f6a0645b 100644
--- a/output_example.c
+++ b/output_example.c
@@ -408,7 +408,7 @@ int main(int argc, char **argv)
}
/* allocate the output media context */
- oc = av_mallocz(sizeof(AVFormatContext));
+ oc = av_alloc_format_context();
if (!oc) {
fprintf(stderr, "Memory error\n");
exit(1);