From f5bb625b3f4d6375027a2e9446feccb887487820 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20=27Flameeyes=27=20Petten=C3=B2?= Date: Thu, 29 Mar 2007 19:24:18 +0000 Subject: Reorder fields and make use of a bitmask for boolean flags. CVS patchset: 8772 CVS date: 2007/03/29 19:24:18 --- src/demuxers/demux_avi.c | 27 +++++++++++++-------------- 1 file changed, 13 insertions(+), 14 deletions(-) (limited to 'src') diff --git a/src/demuxers/demux_avi.c b/src/demuxers/demux_avi.c index 71f5ac888..fe324c2f4 100644 --- a/src/demuxers/demux_avi.c +++ b/src/demuxers/demux_avi.c @@ -19,7 +19,7 @@ */ /* - * $Id: demux_avi.c,v 1.231 2007/03/29 19:07:00 dgp85 Exp $ + * $Id: demux_avi.c,v 1.232 2007/03/29 19:24:18 dgp85 Exp $ * * demultiplexer for avi streams * @@ -251,28 +251,27 @@ typedef struct demux_avi_s { input_plugin_t *input; int status; - int no_audio; - uint32_t video_step; uint32_t AVI_errno; + /* seeking args backup */ + int seek_start_time; + off_t seek_start_pos; + avi_t *avi; idx_grow_t idx_grow; - int streaming; - int last_index_entry_type; - int has_index; - - /* seeking args backup */ - int seek_request; - off_t seek_start_pos; - int seek_start_time; + uint8_t no_audio:1; + + uint8_t streaming:1; + uint8_t has_index:1; + + uint8_t seek_request:1; /* discontinuity detection (only at seek) */ - int send_newpts; - int buf_flag_seek; - + uint8_t buf_flag_seek:1; + uint8_t send_newpts:1; } demux_avi_t ; typedef struct { -- cgit v1.2.3