annotate raw.h @ 3754:8d267b43eaba libavformat

Move malloc() down until after all initializations, so that the resource is only allocated if initialization worked. This means that on failure, we don't have to deallocate it.
author rbultje
date Sat, 23 Aug 2008 18:46:30 +0000
parents 74fbde8871c4
children 1b6245500d8c
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2545
213268d7594e move unrelated functions declarations out of allformats.h
aurel
parents:
diff changeset
1 /*
213268d7594e move unrelated functions declarations out of allformats.h
aurel
parents:
diff changeset
2 * RAW muxer and demuxer
213268d7594e move unrelated functions declarations out of allformats.h
aurel
parents:
diff changeset
3 * Copyright (C) 2007 Aurelien Jacobs <aurel@gnuage.org>
213268d7594e move unrelated functions declarations out of allformats.h
aurel
parents:
diff changeset
4 *
213268d7594e move unrelated functions declarations out of allformats.h
aurel
parents:
diff changeset
5 * This file is part of FFmpeg.
213268d7594e move unrelated functions declarations out of allformats.h
aurel
parents:
diff changeset
6 *
213268d7594e move unrelated functions declarations out of allformats.h
aurel
parents:
diff changeset
7 * FFmpeg is free software; you can redistribute it and/or
213268d7594e move unrelated functions declarations out of allformats.h
aurel
parents:
diff changeset
8 * modify it under the terms of the GNU Lesser General Public
213268d7594e move unrelated functions declarations out of allformats.h
aurel
parents:
diff changeset
9 * License as published by the Free Software Foundation; either
213268d7594e move unrelated functions declarations out of allformats.h
aurel
parents:
diff changeset
10 * version 2.1 of the License, or (at your option) any later version.
213268d7594e move unrelated functions declarations out of allformats.h
aurel
parents:
diff changeset
11 *
213268d7594e move unrelated functions declarations out of allformats.h
aurel
parents:
diff changeset
12 * FFmpeg is distributed in the hope that it will be useful,
213268d7594e move unrelated functions declarations out of allformats.h
aurel
parents:
diff changeset
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
213268d7594e move unrelated functions declarations out of allformats.h
aurel
parents:
diff changeset
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
213268d7594e move unrelated functions declarations out of allformats.h
aurel
parents:
diff changeset
15 * Lesser General Public License for more details.
213268d7594e move unrelated functions declarations out of allformats.h
aurel
parents:
diff changeset
16 *
213268d7594e move unrelated functions declarations out of allformats.h
aurel
parents:
diff changeset
17 * You should have received a copy of the GNU Lesser General Public
213268d7594e move unrelated functions declarations out of allformats.h
aurel
parents:
diff changeset
18 * License along with FFmpeg; if not, write to the Free Software
213268d7594e move unrelated functions declarations out of allformats.h
aurel
parents:
diff changeset
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
213268d7594e move unrelated functions declarations out of allformats.h
aurel
parents:
diff changeset
20 */
213268d7594e move unrelated functions declarations out of allformats.h
aurel
parents:
diff changeset
21
2620
792383dd085e Add FFMPEG_ prefix to all multiple inclusion guards.
diego
parents: 2545
diff changeset
22 #ifndef FFMPEG_RAW_H
792383dd085e Add FFMPEG_ prefix to all multiple inclusion guards.
diego
parents: 2545
diff changeset
23 #define FFMPEG_RAW_H
2545
213268d7594e move unrelated functions declarations out of allformats.h
aurel
parents:
diff changeset
24
213268d7594e move unrelated functions declarations out of allformats.h
aurel
parents:
diff changeset
25 #include "avformat.h"
213268d7594e move unrelated functions declarations out of allformats.h
aurel
parents:
diff changeset
26
213268d7594e move unrelated functions declarations out of allformats.h
aurel
parents:
diff changeset
27 int pcm_read_seek(AVFormatContext *s,
213268d7594e move unrelated functions declarations out of allformats.h
aurel
parents:
diff changeset
28 int stream_index, int64_t timestamp, int flags);
213268d7594e move unrelated functions declarations out of allformats.h
aurel
parents:
diff changeset
29
2620
792383dd085e Add FFMPEG_ prefix to all multiple inclusion guards.
diego
parents: 2545
diff changeset
30 #endif /* FFMPEG_RAW_H */