changeset 2628:93cc89cb0c9c libavformat

remove 2 temporary variables
author aurel
date Thu, 18 Oct 2007 21:59:23 +0000
parents af403e794831
children eaebf51f195d
files electronicarts.c
diffstat 1 files changed, 2 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/electronicarts.c	Thu Oct 18 21:56:44 2007 +0000
+++ b/electronicarts.c	Thu Oct 18 21:59:23 2007 +0000
@@ -143,7 +143,6 @@
  */
 static int process_ea_header(AVFormatContext *s) {
     uint32_t blockid, size = 0;
-    int num, den;
     EaDemuxContext *ea = s->priv_data;
     ByteIOContext *pb = &s->pb;
 
@@ -151,9 +150,8 @@
     if (blockid == MVhd_TAG) {
         size = get_le32(pb);
         url_fskip(pb, 16);
-        den = get_le32(pb);
-        num = get_le32(pb);
-        ea->time_base = (AVRational) {num, den};
+        ea->time_base.den = get_le32(pb);
+        ea->time_base.num = get_le32(pb);
         url_fskip(pb, size-32);
         blockid = get_le32(pb);
     }