changeset 12416:87e6af0a6a5a libavcodec

cleanup a bit in a64multi_encode_frame()
author bindhammer
date Wed, 25 Aug 2010 11:47:50 +0000
parents 04b85031bf00
children 9f06475db098
files a64multienc.c
diffstat 1 files changed, 1 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/a64multienc.c	Wed Aug 25 11:47:47 2010 +0000
+++ b/a64multienc.c	Wed Aug 25 11:47:50 2010 +0000
@@ -271,6 +271,7 @@
 
     /* lifetime reached so now convert X frames at once */
     if (c->mc_frame_counter == c->mc_lifetime) {
+        req_size = 0;
         /* any frames to encode? */
         if(c->mc_lifetime) {
             /* calc optimal new charset + charmaps */
@@ -279,15 +280,8 @@
 
             /* create colorram map and a c64 readable charset */
             render_charset(avctx, charset, colram);
-        }
-
-        req_size = 0;
 
             /* copy charset to buf */
-        //XXX this all should maybe move to the muxer? as well as teh chunked/not chunked thing?
-        /* either write charset as a whole (more comfy when playing from mem) */
-        /* copy charset chunk if exists */
-        if(c->mc_lifetime) {
             memcpy(buf,charset,0x800*(INTERLACED+1));
 
             /* advance pointers */