 				var dStart:uint = packet.position;	// assume that the copy will be from start-of-data
 
 			var nal:HTTPStreamingH264NALU;
-			var avccTag:FLVTagVideo = null;
 			if(flush)
 			{
 				nal = new HTTPStreamingH264NALU(_nalData); // full length to end, don't need to trim last 3 bytes

		
		override public function processES(pusi:Boolean, packet:ByteArray, flush:Boolean = false): ByteArray
		{
			dataReturnTag.clear();
			var i:int, l:int;
			if(pusi)
			{

				avcc = new ByteArray();
				var spsLength:Number = spsNAL.length;
				var ppsLength:Number = ppsNAL.length;
				avccTag = new FLVTagVideo();
				
				//tag.timestamp = _timestamp;
				avccTag.codecID = FLVTagVideo.CODEC_ID_AVC;
				avccTag.frameType = FLVTagVideo.FRAME_TYPE_KEYFRAME;
				avccTag.avcPacketType = FLVTagVideo.AVC_PACKET_TYPE_SEQUENCE_HEADER;
				
				avcc.writeByte(0x01); // avcC version 1
				// profile, compatibility, level
