summaryrefslogtreecommitdiff
path: root/libavcodec/a64multienc.c
diff options
context:
space:
mode:
authorTobias Bindhammer <tobias.bindhammer@uni-ulm.de>2010-08-25 11:47:50 +0000
committerTobias Bindhammer <tobias.bindhammer@uni-ulm.de>2010-08-25 11:47:50 +0000
commitd09c0a1666fa3509dc39b027df8497c8518e5338 (patch)
tree06d2cf9fbf0b9f49ab09ba60c0248ebf2392e20c /libavcodec/a64multienc.c
parent9f63810491682b7a600590dbcdc39e6a2246fd97 (diff)
cleanup a bit in a64multi_encode_frame()
Originally committed as revision 24914 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/a64multienc.c')
-rw-r--r--libavcodec/a64multienc.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/libavcodec/a64multienc.c b/libavcodec/a64multienc.c
index 1b281ec5f2..5a91a149b2 100644
--- a/libavcodec/a64multienc.c
+++ b/libavcodec/a64multienc.c
@@ -271,6 +271,7 @@ static int a64multi_encode_frame(AVCodecContext *avctx, unsigned char *buf,
/* 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 @@ static int a64multi_encode_frame(AVCodecContext *avctx, unsigned char *buf,
/* 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 */