summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRonald S. Bultje <rsbultje@gmail.com>2009-06-09 20:58:32 +0000
committerRonald S. Bultje <rsbultje@gmail.com>2009-06-09 20:58:32 +0000
commit277a28e8fc39cdc8bc69ed11532205f6f92a66ad (patch)
tree81aee8e704293b901ab2a28dffbc7a60a76fa97e
parent28b80940ff69c8d860e54dd326042f4bdc038fba (diff)
Make asf_get_packet() and asf_parse_packet() static. See "[PATCH] asfdec.c:
make get/parse_packet static" thread from 2 months ago. Originally committed as revision 19140 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavformat/asf.h19
-rw-r--r--libavformat/asfdec.c19
2 files changed, 17 insertions, 21 deletions
diff --git a/libavformat/asf.h b/libavformat/asf.h
index 57d6b67a28..52f510293d 100644
--- a/libavformat/asf.h
+++ b/libavformat/asf.h
@@ -227,23 +227,4 @@ extern const AVMetadataConv ff_asf_metadata_conv[];
extern AVInputFormat asf_demuxer;
-/**
- * Load a single ASF packet into the demuxer.
- * @param s demux context
- * @param pb context to read data from
- * @returns 0 on success, <0 on error
- */
-int ff_asf_get_packet(AVFormatContext *s, ByteIOContext *pb);
-
-/**
- * Parse data from individual ASF packets (which were previously loaded
- * with asf_get_packet()).
- * @param s demux context
- * @param pb context to read data from
- * @param pkt pointer to store packet data into
- * @returns 0 if data was stored in pkt, <0 on error or 1 if more ASF
- * packets need to be loaded (through asf_get_packet())
- */
-int ff_asf_parse_packet(AVFormatContext *s, ByteIOContext *pb, AVPacket *pkt);
-
#endif /* AVFORMAT_ASF_H */
diff --git a/libavformat/asfdec.c b/libavformat/asfdec.c
index f8223df2fc..7f254d096b 100644
--- a/libavformat/asfdec.c
+++ b/libavformat/asfdec.c
@@ -582,7 +582,13 @@ static int asf_read_header(AVFormatContext *s, AVFormatParameters *ap)
default: var = defval; break; \
}
-int ff_asf_get_packet(AVFormatContext *s, ByteIOContext *pb)
+/**
+ * Load a single ASF packet into the demuxer.
+ * @param s demux context
+ * @param pb context to read data from
+ * @returns 0 on success, <0 on error
+ */
+static int ff_asf_get_packet(AVFormatContext *s, ByteIOContext *pb)
{
ASFContext *asf = s->priv_data;
uint32_t packet_length, padsize;
@@ -726,7 +732,16 @@ static int asf_read_frame_header(AVFormatContext *s, ByteIOContext *pb){
return 0;
}
-int ff_asf_parse_packet(AVFormatContext *s, ByteIOContext *pb, AVPacket *pkt)
+/**
+ * Parse data from individual ASF packets (which were previously loaded
+ * with asf_get_packet()).
+ * @param s demux context
+ * @param pb context to read data from
+ * @param pkt pointer to store packet data into
+ * @returns 0 if data was stored in pkt, <0 on error or 1 if more ASF
+ * packets need to be loaded (through asf_get_packet())
+ */
+static int ff_asf_parse_packet(AVFormatContext *s, ByteIOContext *pb, AVPacket *pkt)
{
ASFContext *asf = s->priv_data;
ASFStream *asf_st = 0;