diff options
Diffstat (limited to 'libavformat/seek.c')
-rw-r--r-- | libavformat/seek.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libavformat/seek.c b/libavformat/seek.c index 9be8db9784..2368b5e5b9 100644 --- a/libavformat/seek.c +++ b/libavformat/seek.c @@ -3,20 +3,20 @@ * * Copyright (c) 2009 Ivan Schreter * - * This file is part of Libav. + * This file is part of FFmpeg. * - * Libav is free software; you can redistribute it and/or + * FFmpeg is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * - * Libav is distributed in the hope that it will be useful, + * FFmpeg is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public - * License along with Libav; if not, write to the Free Software + * License along with FFmpeg; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ @@ -280,7 +280,7 @@ int64_t ff_gen_syncpoint_search(AVFormatContext *s, } // Initialize syncpoint structures for each stream. - sync = av_malloc(s->nb_streams * sizeof(AVSyncPoint)); + sync = av_malloc_array(s->nb_streams, sizeof(AVSyncPoint)); if (!sync) // cannot allocate helper structure return -1; @@ -402,7 +402,7 @@ AVParserState *ff_store_parser_state(AVFormatContext *s) if (!state) return NULL; - state->stream_states = av_malloc(sizeof(AVParserStreamState) * s->nb_streams); + state->stream_states = av_malloc_array(s->nb_streams, sizeof(AVParserStreamState)); if (!state->stream_states) { av_free(state); return NULL; |