diff options
author | wm4 <wm4@nowhere> | 2015-02-05 21:52:07 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-02-05 21:52:07 +0100 |
commit | 1f2a370a03fff9f1156f3cafa2255c27b61cc35d (patch) | |
tree | 8fa504a5201f66cf2567217d15f431e191195c14 /demux/packet.h | |
parent | f8d7756a14a8073f24c31b3854b7e64784cbb002 (diff) | |
download | mpv-1f2a370a03fff9f1156f3cafa2255c27b61cc35d.tar.bz2 mpv-1f2a370a03fff9f1156f3cafa2255c27b61cc35d.tar.xz |
demux_mkv: refactor packet parsing
Makes it somewhat more uniform, and breaks up the awfully deep nesting.
This implicitly changes multiple small details, rather than only moving
code around. In particular, this computes the packet fields first and
parses them afterwards, which is needed for the next commit.
Diffstat (limited to 'demux/packet.h')
-rw-r--r-- | demux/packet.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/demux/packet.h b/demux/packet.h index 4bd724aa93..213ee025cb 100644 --- a/demux/packet.h +++ b/demux/packet.h @@ -44,6 +44,8 @@ void demux_packet_shorten(struct demux_packet *dp, size_t len); void free_demux_packet(struct demux_packet *dp); struct demux_packet *demux_copy_packet(struct demux_packet *dp); +void demux_packet_copy_attribs(struct demux_packet *dst, struct demux_packet *src); + int demux_packet_set_padding(struct demux_packet *dp, int start, int end); #endif /* MPLAYER_DEMUX_PACKET_H */ |