summaryrefslogtreecommitdiff
path: root/libavformat/xmv.c
diff options
context:
space:
mode:
authorSven Hesse <drmccoy@drmccoy.de>2011-08-18 19:03:28 +0200
committerDiego Biurrun <diego@biurrun.de>2011-08-26 16:26:57 +0200
commit5f677aac7687a5ceac45b53be5e8fe6ebf07c34d (patch)
tree5d229d3cde12d08f58e694e374311826147e48f0 /libavformat/xmv.c
parentd2ba1fb50c72ee8bb92111cd32453b741c545769 (diff)
xmv: eliminate superfluous zeroing of zero data
Signed-off-by: Diego Biurrun <diego@biurrun.de>
Diffstat (limited to 'libavformat/xmv.c')
-rw-r--r--libavformat/xmv.c13
1 files changed, 2 insertions, 11 deletions
diff --git a/libavformat/xmv.c b/libavformat/xmv.c
index a6081aff7b..4c2400bd85 100644
--- a/libavformat/xmv.c
+++ b/libavformat/xmv.c
@@ -235,17 +235,8 @@ static int xmv_read_header(AVFormatContext *s,
/** Initialize the packet context */
xmv->next_packet_offset = avio_tell(pb);
-
- xmv->next_packet_size = this_packet_size - xmv->next_packet_offset;
- xmv->this_packet_size = 0;
-
- xmv->video.current_frame = 0;
- xmv->video.frame_count = 0;
- xmv->video.pts = 0;
- xmv->video.last_pts = 0;
-
- xmv->current_stream = 0;
- xmv->stream_count = xmv->audio_track_count + 1;
+ xmv->next_packet_size = this_packet_size - xmv->next_packet_offset;
+ xmv->stream_count = xmv->audio_track_count + 1;
return 0;
}