| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2000, 2001, 2002 Fabrice Bellard | 2 * Copyright (c) 2000, 2001, 2002 Fabrice Bellard |
| 3 * | 3 * |
| 4 * This file is part of FFmpeg. | 4 * This file is part of FFmpeg. |
| 5 * | 5 * |
| 6 * FFmpeg is free software; you can redistribute it and/or | 6 * FFmpeg is free software; you can redistribute it and/or |
| 7 * modify it under the terms of the GNU Lesser General Public | 7 * modify it under the terms of the GNU Lesser General Public |
| 8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
| 9 * version 2.1 of the License, or (at your option) any later version. | 9 * version 2.1 of the License, or (at your option) any later version. |
| 10 * | 10 * |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 AVFormatContext *avformat_alloc_context(void) | 82 AVFormatContext *avformat_alloc_context(void) |
| 83 { | 83 { |
| 84 AVFormatContext *ic; | 84 AVFormatContext *ic; |
| 85 ic = av_malloc(sizeof(AVFormatContext)); | 85 ic = av_malloc(sizeof(AVFormatContext)); |
| 86 if (!ic) return ic; | 86 if (!ic) return ic; |
| 87 avformat_get_context_defaults(ic); | 87 avformat_get_context_defaults(ic); |
| 88 ic->av_class = &av_format_context_class; | 88 ic->av_class = &av_format_context_class; |
| 89 return ic; | 89 return ic; |
| 90 } | 90 } |
| 91 | 91 |
| 92 #if LIBAVFORMAT_VERSION_MAJOR < 53 | 92 #if FF_API_ALLOC_FORMAT_CONTEXT |
| 93 AVFormatContext *av_alloc_format_context(void) | 93 AVFormatContext *av_alloc_format_context(void) |
| 94 { | 94 { |
| 95 return avformat_alloc_context(); | 95 return avformat_alloc_context(); |
| 96 } | 96 } |
| 97 #endif | 97 #endif |
| OLD | NEW |