summaryrefslogtreecommitdiffstats
path: root/demux
diff options
context:
space:
mode:
Diffstat (limited to 'demux')
-rw-r--r--demux/demux.c6
-rw-r--r--demux/demux_lavf.c3
2 files changed, 3 insertions, 6 deletions
diff --git a/demux/demux.c b/demux/demux.c
index 4fb121e29e..ba632218ec 100644
--- a/demux/demux.c
+++ b/demux/demux.c
@@ -116,12 +116,11 @@ static void ds_free_packs(struct demux_stream *ds)
ds->eof = 0;
}
-static int packet_destroy(void *ptr)
+static void packet_destroy(void *ptr)
{
struct demux_packet *dp = ptr;
talloc_free(dp->avpacket);
free(dp->allocation);
- return 0;
}
static struct demux_packet *create_packet(size_t len)
@@ -193,10 +192,9 @@ void free_demux_packet(struct demux_packet *dp)
talloc_free(dp);
}
-static int destroy_avpacket(void *pkt)
+static void destroy_avpacket(void *pkt)
{
av_free_packet(pkt);
- return 0;
}
struct demux_packet *demux_copy_packet(struct demux_packet *dp)
diff --git a/demux/demux_lavf.c b/demux/demux_lavf.c
index 1e071f20e2..9b8881fc8a 100644
--- a/demux/demux_lavf.c
+++ b/demux/demux_lavf.c
@@ -717,10 +717,9 @@ static void seek_reset(demuxer_t *demux)
priv->num_packets = 0;
}
-static int destroy_avpacket(void *pkt)
+static void destroy_avpacket(void *pkt)
{
av_free_packet(pkt);
- return 0;
}
static int read_more_av_packets(demuxer_t *demux)