diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2011-05-19 22:09:34 +0200 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2011-05-22 20:01:31 +0200 |
commit | 5ecdfd008bce961c3241eaa1f8dc06e82a6b12db (patch) | |
tree | 65def2a600cdbb8f1dfa3b40cec010e33738bee7 /libavformat/output-example.c | |
parent | 83db71977700d3337c84d5945ac8b7e7ee881ac2 (diff) |
lavf: deprecate avformat_alloc_output_context() in favor of avformat_alloc_output_context2()
The new function accepts a slightly more intuitive order of paramters,
and returns an error code, thus allowing applications to report a
meaningful error message.
Diffstat (limited to 'libavformat/output-example.c')
-rw-r--r-- | libavformat/output-example.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/output-example.c b/libavformat/output-example.c index ac35ff023a..f174305fe6 100644 --- a/libavformat/output-example.c +++ b/libavformat/output-example.c @@ -443,10 +443,10 @@ int main(int argc, char **argv) filename = argv[1]; /* allocate the output media context */ - oc = avformat_alloc_output_context(NULL, NULL, filename); + avformat_alloc_output_context2(&oc, NULL, NULL, filename); if (!oc) { printf("Could not deduce output format from file extension: using MPEG.\n"); - oc = avformat_alloc_output_context("mpeg", NULL, filename); + avformat_alloc_output_context2(&oc, NULL, "mpeg", filename); } if (!oc) { exit(1); |