[FFmpeg-cvslog] xmv: Remove superfluous zeroing of already zero'd data
Sven Hesse
git at videolan.org
Fri Aug 19 00:07:10 CEST 2011
ffmpeg | branch: master | Sven Hesse <drmccoy at drmccoy.de> | Thu Aug 18 19:03:28 2011 +0200| [c062aa8deb5660a6963bf0314e09756236597517] | committer: Michael Niedermayer
xmv: Remove superfluous zeroing of already zero'd data
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c062aa8deb5660a6963bf0314e09756236597517
---
libavformat/xmv.c | 13 ++-----------
1 files changed, 2 insertions(+), 11 deletions(-)
diff --git a/libavformat/xmv.c b/libavformat/xmv.c
index 3bcb9ef..e9f0c83 100644
--- a/libavformat/xmv.c
+++ b/libavformat/xmv.c
@@ -226,17 +226,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;
}
More information about the ffmpeg-cvslog
mailing list